siconos.numerics.NumericsSparseMatrix (Python class)

class siconos.numerics.NumericsSparseMatrix[source]

Bases: object

Sparse matrix representation in Numerics.

The supported format are: triplet (aka coordinate, COO), CSC (via CSparse) and CSR if MKL is used

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

  • csc (CSparseMatrix *) – csc matrix

  • csr (CSparseMatrix *) – csr matrix, only supported with mkl

  • diag_indx (CS_INT *) – indices for the diagonal terms.

    Very useful for the proximal perturbation

  • linearSolverParams (NSM_linear_solver_params *) – solver-specific parameters

  • origin (``) – original format of the matrix

  • trans_csc (CSparseMatrix *) – transpose of a csc matrix (used by CSparse)

  • triplet (CSparseMatrix *) – triplet format, aka coordinate