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

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

[Octave-bug-tracker] [bug #53198] nnz could be improved for diagonal mat


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #53198] nnz could be improved for diagonal matrices
Date: Mon, 18 Jun 2018 14:45:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #8, bug #53198 (project octave):

Oh, and I forgot to mention one of the first things that caught my eye, and
why I started the examples with a sparse matrix.  In the issorted()
documentation it states


     This function does not support sparse matrices.


Again, sorting a sparse matrix is simply a case of changing the
sparse-matrix's indeces appropriately.  In fact, it's already implemented:


octave:33> sort(X)
ans =

Compressed Column Sparse (rows = 3, cols = 4, nnz = 2 [17%])

  (3, 1) ->  4
  (3, 2) ->  5


So why can't issorted() work for sparse matrices?

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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