matrixops.hpp
Go to the documentation of this file.
static Matrix Axpy(const Matrix &A, const Matrix &B, double alpha) axpy like operation - returns A+alpha*B Definition: applier.hpp:18 static Matrix fromDense(const Dune::DynamicMatrix< double > &T) Create a sparse matrix from a dense matrix. std::vector< std::set< int > > AdjacencyPattern For storing matrix adjacency/sparsity patterns. Definition: matrixops.hpp:26 static void saveAsc(const Matrix &A, const std::string &file) Save a matrix as a dense asc file. Dune::BCRSMatrix< Dune::FieldMatrix< double, 1, 1 > > Matrix A sparse matrix holding our operator. Definition: matrixops.hpp:23 static Matrix extractDiagonal(const Matrix &A) Extract the diagonal of a matrix into a new matrix. static void fromAdjacency(Matrix &A, const AdjacencyPattern &adj, int rows, int cols) Create a sparse matrix from a given adjacency pattern. static Matrix augment(const Matrix &A, const Matrix &B, size_t r0, size_t c0, bool symmetric) Augment a matrix with another. static Matrix extractBlock(const Matrix &A, size_t r0, size_t N, size_t c0, size_t M) Extract a subblock of a matrix into a new matrix. Dune::BlockVector< Dune::FieldVector< double, 1 > > Vector A vector holding our RHS. Definition: matrixops.hpp:29 |