help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: elements of a sparse matrix


From: Jordi Gutiérrez Hermoso
Subject: Re: elements of a sparse matrix
Date: Mon, 27 Dec 2010 10:10:24 -0600

On 27 December 2010 09:59, Jaana Tommiska <address@hidden> wrote:
> I have a 10000x10000 sparse matrix A that is a result of a
> multiplication of two matrices generated by sprand. If I want to
> find out the element A(10000,10000) and I type A(10000,10000) I get
> memory exhaustedor index type too big..

What's the density of your matrix? What was the exact call to sprand?
I'm noticing that the density matters a lot.

> If I type A(10000*100000) I get say
> (1,1)-> some number.
> Is the number the element that I am intersted in?

Yes, but I'm curious why wouldn't it work otherwise. Can you provide a
reproducible test case?

- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]