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

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

[Octave-bug-tracker] [bug #41799] Example sparse matrix created in oct-f


From: Carlo de Falco
Subject: [Octave-bug-tracker] [bug #41799] Example sparse matrix created in oct-file with 0 index
Date: Wed, 04 Jun 2014 01:50:18 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Firefox/29.0

Follow-up Comment #4, bug #41799 (project octave):

Rik, 

Why do you think it is better to suggest 


ColumnVector ridx (nz); 
ColumnVector cidx (nz); 


for the indices, which requires casting indices 
to double then back to octave_idx_type?

Isn't it better to use 


Array<octave_idx_type> ridx (nz); 
Array<octave_idx_type> cidx (nz);


directly?

AFAICS, the Sparse constructor that accepts
Array objects assumes they are 0-based.

c.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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