SparseMatrix#

class numpy::SparseMatrix#

numpy C++ class.

Example#

#include <numpy/np_ndarray.h>
using namespace numpy;

// Use SparseMatrix
SparseMatrix obj;
// ... operations ...

Constructors#

Signature

Location

Example

SparseMatrix(size_tm, size_tn)

NP_LINALG_UTILS.H:2204

Indexing / Selection#

Signature

Return Type

Location

Example

double getSparsityRatio()

double

NP_LINALG_UTILS.H:2256

Other Methods#

Signature

Return Type

Location

Example

SparseMatrix<T> fromDense(const NDArray<T>&matrix, typename real_type<T>::typetolerance = machine_epsilon<typename real_type<T>::type>())

SparseMatrix<T>

NP_LINALG_UTILS.H:2209