Navigation

Operators and Keywords

Function List:

C++ API

: x = spconvert (m)

Convert a simple sparse matrix format easily generated by other programs into Octave’s internal sparse format.

The input m is either a 3 or 4 column real matrix, containing the row, column, real, and imaginary parts of the elements of the sparse matrix. An element with a zero real and imaginary part can be used to force a particular matrix size.

See also: sparse.

Package: octave