Importing a sparse matrix to Octave

John W. Eaton jwe at octave.org
Fri Jul 24 14:53:51 CDT 2009


On 24-Jul-2009, Jaroslav Hajek wrote:

| No, not yet. A futher requirement is that the row indices should be
| sorted (for a certain column index).

Is that necessary?  For example, loading

# name: s
# type: sparse matrix
# nnz: 5
# rows: 10
# columns: 10
1 1 1
6 2 6
4 2 4
5 2 5
3 6 3

appears to work.

jwe


More information about the Help-octave mailing list