From bug-octave-request at bevo dot che dot wisc dot edu Wed Feb 18 16:01:48 2004 Subject: Re: Sparse problem in octave-forge From: "Dmitri A. Sergatskov" To: bug-octave at bevo dot che dot wisc dot edu Cc: Christian Henke Date: Wed, 18 Feb 2004 15:01:29 -0700 Christian Henke wrote: > There is an error in the sparse implementation. If i start > > function test(n) > s=sprand(n,n,0.1); > s(3:6,3:6)=rand(4,4); > endfunction; I remove the ";" and rename it to "tests" (to avoid possible name collision) octave:1> tests(3) s = Compressed Column Sparse (rows=3, cols=3, nnz=1) (2 , 2) -> 0.30817 s = 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.30817 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.09754 0.54688 0.96489 0.97059 0.00000 0.00000 0.54722 0.99288 0.96769 0.98111 0.00000 0.00000 0.27850 0.95751 0.15761 0.95717 0.00000 0.00000 0.18838 0.99646 0.72584 0.10986 octave:2> who (Octave hangs here) This is with 2.1.54 and octave-forge-2004.02.12 :( > Christian > Dmitri. ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------