help-octave
[Top][All Lists]
Advanced

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

Re: sparse matrix promoted to full for no reason


From: nomad
Subject: Re: sparse matrix promoted to full for no reason
Date: Fri, 20 Jul 2007 10:37:54 -0700 (PDT)



dbateman wrote:
> 
> 
> 
> nomad wrote:
>> 
>> I tried
>> 
>> s = sparse(2,2);
>> s(1,1) = 1; %fine here
>> s(2,2) = 2; %promoted to full
>> 
>> whos s
>> 
>> What is it that I am doing wrong?
>> 
>> thanks,
>> krishna.
>> 
> 
> Nothing, this expected behavior for octave, as the full version takes less
> space than the sparse one.
> 
> D.
> 
> 
> 

Unfortunately your reason does not seem to be right. This is a generic
problem, try the following.

s=speye(1000);
s(1,1)=1; %promoted to full


-- 
View this message in context: 
http://www.nabble.com/sparse-matrix-promoted-to-full-for-no-reason-tf4116917.html#a11712716
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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