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

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

[Octave-bug-tracker] [bug #42825] Memory corruption in sparse matrix ope


From: Carlos Dyonisio
Subject: [Octave-bug-tracker] [bug #42825] Memory corruption in sparse matrix operation
Date: Fri, 12 Feb 2016 04:12:17 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36

Follow-up Comment #9, bug #42825 (project octave):

I am having a similar problem, and the patch fixes it.

Here are the details:

> M = sparse([], [], [], 3, 3, 21);
> M(1, 3) = 1;
> M(2, 3) = 2;
> M
M =

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

  (1, 3) ->  1
  (2, 3) ->  2
> M(2, 2) = -i;
> M
M =

Compressed Column Sparse (rows = 3, cols = 3, nnz = 3 [33%])

  (2, 2) -> -0 - 1i
  (1, 3) ->  1 + 0i
  (2, 3) ->  1 + 0i


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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