siconos.numerics.NumericsMatrix (Python class)

class siconos.numerics.NumericsMatrix(o: PyObject *)[source]

Bases: object

Interface to different type of matrices in numerics component.

See NM_* functions for linear algebra operations on dense, sparse block and sparse storage.

Generated class (swig), based on C++ header Program listing for file numerics/src/tools/NumericsMatrix.h.

Attributes:
  • internalData (NumericsMatrixInternalData *) – internal storage, used for workspace among other things

  • matrix0 (array_like (np.float64, 1D)) – dense storage

  • matrix1 (SparseBlockStructuredMatrix *) – sparse block storage

  • matrix2 (NumericsSparseMatrix *) – csc, csr or triplet storage

  • size0 (int) – number of rows

  • size1 (int) – number of columns

  • storageType (int) – the type of storage: 0: dense (double*), 1: SparseBlockStructuredMatrix, 2: classical sparse (csc, csr or triplet) via CSparse (from T.

    Davis)