Wed 04 Jan 2012 11:55:24 AM UTC, comment #2:
there is also an additional "ans" when sparse fails and no ";"
is used for line termination.
octave:1> zeros(1e5,1e5,0)
error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt
octave:1> sparse(1e5,1e5,0)
error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt
ans =
Compressed Column Sparse (rows = 100000, cols = 100000, nnz = 0octave:1>
octave:1> zeros(1e5,1e5,0);
error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt
octave:1> sparse(1e5,1e5,0);
Similar behaviour in spalloc
Also noted on other sparse functions
octave:4> sprandn(1e5,1e5,0.1)
panic: Aborted -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
|