Bases: dolfin.cpp.la.GenericMatrix
This class provides a sparse matrix class based on Eigen. It is a simple wrapper for Eigen::SparseMatrix implementing the GenericMatrix interface.
The interface is intentionally simple. For advanced usage, access the underlying Eigen matrix and use the standard Eigen interface which is documented at http://eigen.tuxfamily.org
Overloaded versions
EigenMatrix()
Create empty matrix
EigenMatrix(M, N)
Create M x N matrix
EigenMatrix(A)
Copy constructor
Overloaded versions
operator=(A)
Assignment operator
operator=(A)
Assignment operator
Compress matrix (eliminate all zeros from a sparse matrix)
Return arrays to underlaying compresssed row/column storage data
This method is only available for the Eigen linear algebra backend.
Overloaded versions
mat()
Return reference to Eigen matrix (const version)
mat()
Return reference to Eigen matrix (non-const version)
Resize matrix to M x N
Return a scipy.sparse representation of Matrix
The membership flag
Overloaded versions
zero()
Set all entries to zero and keep any sparse structure
zero(m, rows)
Set given rows (global row indices) to zero