DOLFIN
DOLFIN C++ interface
|
Coordinate sparse matrix. More...
#include <CoordinateMatrix.h>
Public Member Functions | |
CoordinateMatrix (const GenericMatrix &A, bool symmetric, bool base_one) | |
Constructor. | |
virtual | ~CoordinateMatrix () |
Destructor. | |
std::size_t | size (std::size_t dim) const |
const std::vector< std::size_t > & | rows () const |
Get row indices. | |
const std::vector< std::size_t > & | columns () const |
Get column indices. | |
const std::vector< double > & | values () const |
Get values. | |
double | norm (std::string norm_type) const |
Return norm of matrix. | |
MPI_Comm | mpi_comm () const |
Get MPI_Comm. | |
bool | base_one () const |
Whether indices start from 0 (C-style) or 1 (FORTRAN-style) | |
Coordinate sparse matrix.
|
inline |
Size
dim | (std::size_t) Dimension (0 or 1) |