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

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

[Octave-bug-tracker] [bug #56232] Octave crash when inverting an empty s


From: anonyme
Subject: [Octave-bug-tracker] [bug #56232] Octave crash when inverting an empty sparse matrix.
Date: Tue, 7 May 2019 10:28:41 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #20, bug #56232 (project octave):

Here is another interesting data point


>> [L,U,P,Q] = lu(sparse([],[],[],2,2,1))
L =

Compressed Column Sparse (rows = 2, cols = 2, nnz = 2 [50%])

  (1, 1) ->  1
  (2, 2) ->  1

U =

Compressed Column Sparse (rows = 2, cols = 2, nnz = 0 [0%])


P =

Permutation Matrix

   1   0
   0   1

Q =

Permutation Matrix

   0   1
   1   0


I use the value of NZMAX (set to 1) to create a sparse matrix that although it
is empty has valid row, col et data indexes and LU returns a valid
factorization. So again setting the sparse column et data indices to a null
pointer is not the right thing to do. 

David


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56232>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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