|
| TpetraMatrix () |
| Create empty matrix.
|
|
| TpetraMatrix (Teuchos::RCP< matrix_type > A) |
| Create a wrapper around a Teuchos::RCP<matrix_type> pointer.
|
|
| TpetraMatrix (const TpetraMatrix &A) |
| Copy constructor.
|
|
virtual | ~TpetraMatrix () |
| Destructor.
|
|
void | init (const TensorLayout &tensor_layout) |
| Initialize zero tensor using tensor layout. More...
|
|
bool | empty () const |
| Return true if empty. More...
|
|
std::size_t | size (std::size_t dim) const |
| Return size of given dimension. More...
|
|
std::pair< std::int64_t, std::int64_t > | local_range (std::size_t dim) const |
| Return local ownership range. More...
|
|
std::size_t | nnz () const |
| Return number of non-zero entries in matrix (collective) More...
|
|
virtual void | zero () |
| Set all entries to zero and keep any sparse structure. More...
|
|
virtual void | apply (std::string mode) |
| Finalize assembly of tensor. The mode parameter is ignored. More...
|
|
MPI_Comm | mpi_comm () const |
| Return MPI communicator. More...
|
|
virtual std::string | str (bool verbose) const |
| Return informal string representation (pretty-print) More...
|
|
virtual std::shared_ptr< GenericMatrix > | copy () const |
| Return copy of matrix. More...
|
|
virtual void | init_vector (GenericVector &z, std::size_t dim) const |
|
virtual void | get (double *block, std::size_t m, const dolfin::la_index *rows, std::size_t n, const dolfin::la_index *cols) const |
| Get block of values. More...
|
|
virtual void | set (const double *block, std::size_t m, const dolfin::la_index *rows, std::size_t n, const dolfin::la_index *cols) |
| Set block of values using global indices. More...
|
|
virtual void | set_local (const double *block, std::size_t m, const dolfin::la_index *rows, std::size_t n, const dolfin::la_index *cols) |
| Set block of values using local indices. More...
|
|
virtual void | add (const double *block, std::size_t m, const dolfin::la_index *rows, std::size_t n, const dolfin::la_index *cols) |
| Add block of values using global indices. More...
|
|
virtual void | add_local (const double *block, std::size_t m, const dolfin::la_index *rows, std::size_t n, const dolfin::la_index *cols) |
| Add block of values using local indices. More...
|
|
virtual void | axpy (double a, const GenericMatrix &A, bool same_nonzero_pattern) |
| Add multiple of given matrix (AXPY operation) More...
|
|
virtual void | getrow (std::size_t row, std::vector< std::size_t > &columns, std::vector< double > &values) const |
| Get non-zero values of given row. More...
|
|
virtual void | setrow (std::size_t row, const std::vector< std::size_t > &columns, const std::vector< double > &values) |
| Set values for given row. More...
|
|
virtual void | zero (std::size_t m, const dolfin::la_index *rows) |
| Set given rows (global row indices) to zero. More...
|
|
virtual void | zero_local (std::size_t m, const dolfin::la_index *rows) |
| Set given rows (local row indices) to zero. More...
|
|
virtual void | ident (std::size_t m, const dolfin::la_index *rows) |
| Set given rows (global row indices) to identity matrix. More...
|
|
virtual void | ident_local (std::size_t m, const dolfin::la_index *rows) |
| Set given rows (local row indices) to identity matrix. More...
|
|
virtual void | mult (const GenericVector &x, GenericVector &y) const |
| Compute matrix-vector product y = Ax. More...
|
|
virtual void | transpmult (const GenericVector &x, GenericVector &y) const |
|
virtual void | get_diagonal (GenericVector &x) const |
| Get diagonal of a matrix. More...
|
|
virtual void | set_diagonal (const GenericVector &x) |
| Set diagonal of a matrix. More...
|
|
virtual const TpetraMatrix & | operator*= (double a) |
| Multiply matrix by given number. More...
|
|
virtual const TpetraMatrix & | operator/= (double a) |
| Divide matrix by given number. More...
|
|
virtual const GenericMatrix & | operator= (const GenericMatrix &A) |
| Assignment operator. More...
|
|
virtual bool | is_symmetric (double tol) const |
| Test if matrix is symmetric. More...
|
|
virtual GenericLinearAlgebraFactory & | factory () const |
| Return linear algebra backend factory. More...
|
|
double | norm (std::string norm_type) const |
| Return norm of matrix. More...
|
|
const TpetraMatrix & | operator= (const TpetraMatrix &A) |
| Assignment operator.
|
|
Teuchos::RCP< matrix_type > | mat () |
| Return Teuchos reference counted pointer to raw matrix.
|
|
Teuchos::RCP< const matrix_type > | mat () const |
| Return Teuchos reference counted pointer to raw matrix (const)
|
|
virtual | ~GenericMatrix () |
| Destructor.
|
|
virtual std::size_t | rank () const |
| Return tensor rank (number of dimensions) More...
|
|
virtual std::size_t | size (std::size_t dim) const =0 |
| Return size of given dimension. More...
|
|
virtual std::pair< std::int64_t, std::int64_t > | local_range (std::size_t dim) const =0 |
| Return local ownership range. More...
|
|
virtual std::size_t | nnz () const =0 |
| Return number of non-zero entries in matrix (collective) More...
|
|
virtual void | get (double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) const |
| Get block of values. More...
|
|
virtual void | set (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) |
| Set block of values using global indices. More...
|
|
virtual void | set_local (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) |
| Set block of values using local indices. More...
|
|
virtual void | add (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) |
| Add block of values using global indices. More...
|
|
virtual void | add_local (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) |
| Add block of values using local indices. More...
|
|
virtual void | add (const double *block, const std::vector< ArrayView< const dolfin::la_index > > &rows) |
| Add block of values using global indices. More...
|
|
virtual void | add_local (const double *block, const std::vector< ArrayView< const dolfin::la_index > > &rows) |
| Add block of values using local indices. More...
|
|
virtual void | zero ()=0 |
| Set all entries to zero and keep any sparse structure. More...
|
|
virtual void | apply (std::string mode)=0 |
| Finalize assembly of tensor. More...
|
|
virtual std::string | str (bool verbose) const =0 |
| Return informal string representation (pretty-print) More...
|
|
virtual std::shared_ptr< GenericMatrix > | copy () const =0 |
| Return copy of matrix. More...
|
|
virtual void | init_vector (GenericVector &z, std::size_t dim) const =0 |
|
virtual void | get (double *block, std::size_t m, const dolfin::la_index *rows, std::size_t n, const dolfin::la_index *cols) const =0 |
| Get block of values. More...
|
|
virtual void | set (const double *block, std::size_t m, const dolfin::la_index *rows, std::size_t n, const dolfin::la_index *cols)=0 |
| Set block of values using global indices. More...
|
|
virtual void | set_local (const double *block, std::size_t m, const dolfin::la_index *rows, std::size_t n, const dolfin::la_index *cols)=0 |
| Set block of values using local indices. More...
|
|
virtual void | add (const double *block, std::size_t m, const dolfin::la_index *rows, std::size_t n, const dolfin::la_index *cols)=0 |
| Add block of values using global indices. More...
|
|
virtual void | add_local (const double *block, std::size_t m, const dolfin::la_index *rows, std::size_t n, const dolfin::la_index *cols)=0 |
| Add block of values using local indices. More...
|
|
virtual void | axpy (double a, const GenericMatrix &A, bool same_nonzero_pattern)=0 |
| Add multiple of given matrix (AXPY operation) More...
|
|
virtual double | norm (std::string norm_type) const =0 |
| Return norm of matrix. More...
|
|
virtual void | getrow (std::size_t row, std::vector< std::size_t > &columns, std::vector< double > &values) const =0 |
| Get non-zero values of given row (global index) on local process. More...
|
|
virtual void | setrow (std::size_t row, const std::vector< std::size_t > &columns, const std::vector< double > &values)=0 |
| Set values for given row (global index) on local process. More...
|
|
virtual void | zero (std::size_t m, const dolfin::la_index *rows)=0 |
| Set given rows (global row indices) to zero. More...
|
|
virtual void | zero_local (std::size_t m, const dolfin::la_index *rows)=0 |
| Set given rows (local row indices) to zero. More...
|
|
virtual void | ident (std::size_t m, const dolfin::la_index *rows)=0 |
| Set given rows (global row indices) to identity matrix. More...
|
|
virtual void | ident_local (std::size_t m, const dolfin::la_index *rows)=0 |
| Set given rows (local row indices) to identity matrix. More...
|
|
virtual void | transpmult (const GenericVector &x, GenericVector &y) const =0 |
|
virtual void | get_diagonal (GenericVector &x) const =0 |
| Get diagonal of a matrix. More...
|
|
virtual void | set_diagonal (const GenericVector &x)=0 |
| Set diagonal of a matrix. More...
|
|
virtual const GenericMatrix & | operator*= (double a)=0 |
| Multiply matrix by given number. More...
|
|
virtual const GenericMatrix & | operator/= (double a)=0 |
| Divide matrix by given number. More...
|
|
const GenericMatrix & | operator+= (const GenericMatrix &A) |
| Add given matrix.
|
|
const GenericMatrix & | operator-= (const GenericMatrix &A) |
| Subtract given matrix.
|
|
virtual bool | is_symmetric (double tol) const |
| Test if matrix is symmetric. More...
|
|
virtual const GenericMatrix & | operator= (const GenericMatrix &x)=0 |
| Assignment operator. More...
|
|
virtual double | operator() (dolfin::la_index i, dolfin::la_index j) const |
| Get value of given entry. More...
|
|
virtual double | getitem (std::pair< dolfin::la_index, dolfin::la_index > ij) const |
| Get value of given entry.
|
|
virtual void | setitem (std::pair< dolfin::la_index, dolfin::la_index > ij, double value) |
|
virtual void | ident_zeros (double tol=DOLFIN_EPS) |
| Insert one on the diagonal for all zero rows.
|
|
virtual | ~GenericTensor () |
| Destructor.
|
|
virtual void | init (const TensorLayout &tensor_layout)=0 |
| Initialize zero tensor using tensor layout. More...
|
|
virtual bool | empty () const =0 |
| Return true if empty. More...
|
|
virtual std::size_t | rank () const =0 |
| Return tensor rank (number of dimensions) More...
|
|
virtual std::size_t | size (std::size_t dim) const =0 |
| Return size of given dimension. More...
|
|
virtual std::pair< std::int64_t, std::int64_t > | local_range (std::size_t dim) const =0 |
| Return local ownership range. More...
|
|
virtual void | get (double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) const =0 |
| Get block of values. More...
|
|
virtual void | set (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows)=0 |
| Set block of values using global indices. More...
|
|
virtual void | set_local (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows)=0 |
| Set block of values using local indices. More...
|
|
virtual void | add (const double *block, const std::vector< ArrayView< const dolfin::la_index > > &rows)=0 |
| Add block of values using global indices. More...
|
|
virtual void | add_local (const double *block, const std::vector< ArrayView< const dolfin::la_index > > &rows)=0 |
| Add block of values using local indices. More...
|
|
virtual void | add (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows)=0 |
| Add block of values using global indices. More...
|
|
virtual void | add_local (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows)=0 |
| Add block of values using local indices. More...
|
|
virtual void | zero ()=0 |
| Set all entries to zero and keep any sparse structure. More...
|
|
virtual void | apply (std::string mode)=0 |
| Finalize assembly of tensor. More...
|
|
virtual std::string | str (bool verbose) const =0 |
| Return MPI communicator. More...
|
|
virtual GenericLinearAlgebraFactory & | factory () const =0 |
| Return linear algebra backend factory. More...
|
|
virtual const LinearAlgebraObject * | instance () const |
| Return concrete instance / unwrap (const version) More...
|
|
virtual LinearAlgebraObject * | instance () |
| Return concrete instance / unwrap (non-const version) More...
|
|
virtual std::shared_ptr< const LinearAlgebraObject > | shared_instance () const |
| Return concrete shared ptr instance / unwrap (const version) More...
|
|
virtual std::shared_ptr< LinearAlgebraObject > | shared_instance () |
| Return concrete shared ptr instance / unwrap (non-const version) More...
|
|
virtual MPI_Comm | mpi_comm () const =0 |
| Return MPI communicator. More...
|
|
| Variable () |
| Create unnamed variable.
|
|
| Variable (const std::string name, const std::string label) |
| Create variable with given name and label.
|
|
| Variable (const Variable &variable) |
| Copy constructor.
|
|
virtual | ~Variable () |
| Destructor.
|
|
const Variable & | operator= (const Variable &variable) |
| Assignment operator.
|
|
void | rename (const std::string name, const std::string label) |
| Rename variable.
|
|
std::string | name () const |
| Return name.
|
|
std::string | label () const |
| Return label (description)
|
|
std::size_t | id () const |
|
virtual std::string | str (bool verbose) const |
| Return informal string representation (pretty-print) More...
|
|
virtual std::size_t | size (std::size_t dim) const =0 |
| Return size of given dimension. More...
|
|
virtual void | mult (const GenericVector &x, GenericVector &y) const =0 |
| Compute matrix-vector product y = Ax. More...
|
|
virtual std::string | str (bool verbose) const =0 |
| Return informal string representation (pretty-print) More...
|
|