CoordinateMatrix

class dolfin.cpp.la.CoordinateMatrix(A: dolfin.cpp.la.GenericMatrix, symmetric: bool, base_one: bool)

Bases: object

Coordinate sparse matrix.

Constructor.

Parameters:
  • GenericMatrix & A (const) –
  • symmetric (bool) –
  • base_one (bool) –
base_one()

Whether indices start from 0 (C-style) or 1 (FORTRAN-style)

Return type:bool
columns()

Get column indices.

Return type:const std::vector< std::size_t > &
mpi_comm()

Get MPI_Comm.

Return type:MPI_Comm
norm()

Return norm of matrix.

Parameters:norm_type (std::string) –
Return type:double
rows()

Get row indices.

Return type:const std::vector< std::size_t > &
size()

Size

Parameters:dim (std::size_t) – (std::size_t) Dimension (0 or 1)
Return type:std::size_t
thisown

The membership flag

values()

Get values.

Return type:const std::vector< double > &