[Top][All Lists]

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

Re: Bug with numel() and sparsity?

From: Kai Torben Ohlhus
Subject: Re: Bug with numel() and sparsity?
Date: Mon, 3 Mar 2014 23:40:58 +0100

On Mon, Mar 3, 2014 at 7:29 PM, fork <address@hidden> wrote:
I am currently playing around with sedumi (thanks Michael!), and I ran into
this error with very big sparse matrices:

ans = 3.8.1-rc3
debug> size(x)
ans =

   400002   200020

debug> nnz(x)
ans =  600000
debug> numel(x)
error: out of memory or dimension too large for Octave's index type

Is this a bug in numel()?  Or should numel() never be used with large sparse
matrices (and thus a bug in sedumi)?

Help-octave mailing list


Your problem might be related to the fact, that the standard octave uses 32 bit indices rather than 64 bit [1]. There have been previous discussion about this issue [2]. The major problem is, that Octave's dependencies have to use 64-bit pointers as well to work correctly.

HTH, Kai


reply via email to

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