octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #45957] Error "A(I) = X: X must have the same


From: Ceral Paquet
Subject: [Octave-bug-tracker] [bug #45957] Error "A(I) = X: X must have the same size as I" not very informative
Date: Mon, 14 Sep 2015 23:56:33 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0

Follow-up Comment #1, bug #45957 (project octave):

This is a really nice idea for an enhancement! Just a couple of other messages
to consider refining:

>> Q=zeros(1e7,1e7);
error: out of memory or dimension too large for Octave's index type

>> Q=zeros(1e20,1);
error: out of memory or dimension too large for Octave's index type

I wonder if the message could tell you explicitly if your numel>2^31 (or 63)
and whether there is insufficient memory.

The sparse function does gives this in some cases:

>> s = sparse(1,1e20,0)
error: sparse: subscript indices must be either positive integers less than
2^31 or logicals

but not others:

>> s = sparse(1,1e20)
error: out of memory or dimension too large for Octave's index type






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45957>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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