class

LA::Sparse::Matrix(T)

Inherits LA::Matrix / LA::LapackHelper / Enumerable / Reference / Object

Instance methods

+(m : Sparse::Matrix)

returns element-wise sum

Source
-(m : Sparse::Matrix)
Source
==(other : Sparse::Matrix(T))
Source
clone
Source
dup

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.

Source
flags

Returns flags of matrix (see MatrixFlags)

Source
flags=(flags : MatrixFlags)

Returns flags of matrix (see MatrixFlags)

Source
ncolumns

Returns number of columns in matrix

Source
nonzeros
Source
nrows

Returns number of rows in matrix

Source
to_dense
Source
to_general

Creates general matrix with same content. Useful for banded\sparse matrices

Source