Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
Classes | |
class | dg::SquareMatrix< T > |
A square nxn matrix. More... | |
Typedefs | |
template<class T > | |
using | dg::Operator = SquareMatrix<T> |
The old name for SquareMatrix was Operator. | |
Functions | |
template<class ContainerType > | |
auto | dg::asDenseMatrix (const std::vector< const ContainerType * > &in) |
Lightweight DenseMatrix for dg::blas2::gemv . | |
template<class ContainerType > | |
auto | dg::asDenseMatrix (const std::vector< const ContainerType * > &in, unsigned size) |
Lightweight DenseMatrix for dg::blas2::gemv . | |
template<class ContainerType > | |
std::vector< const ContainerType * > | dg::asPointers (const std::vector< ContainerType > &in) |
Convert a vector of vectors to a vector of pointers. | |
using dg::Operator = SquareMatrix<T> |
The old name for SquareMatrix was Operator.
auto dg::asDenseMatrix | ( | const std::vector< const ContainerType * > & | in | ) |
Lightweight DenseMatrix for dg::blas2::gemv
.
The philosophy is that a column matrix is represented by a std::vector
of pointers and can be multiplied with a coefficient vector
\[ \vec y = V \vec c = \sum_i c_i \vec v_{i} \]
where \( v_i\) are the columns of \( V\)
in | a collection of pointers that form the columns of the dense matrix |
std::vector
is to be interpreted as a dense matrix and call the correct implementation. ContainerType | Any class for which a specialization of TensorTraits exists and which fulfills the requirements of the there defined data and execution policies derived from AnyVectorTag and AnyPolicyTag . Among others
ContainerTypes in the argument list, then TensorTraits must exist for all of them |
auto dg::asDenseMatrix | ( | const std::vector< const ContainerType * > & | in, |
unsigned | size ) |
Lightweight DenseMatrix for dg::blas2::gemv
.
The philosophy is that a column matrix is represented by a std::vector
of pointers and can be multiplied with a coefficient vector
\[ \vec y = V \vec c = \sum_i c_i \vec v_{i} \]
where \( v_i\) are the columns of \( V\)
in | a collection of pointers that form the columns of the dense matrix |
std::vector
is to be interpreted as a dense matrix and call the correct implementation. ContainerType | Any class for which a specialization of TensorTraits exists and which fulfills the requirements of the there defined data and execution policies derived from AnyVectorTag and AnyPolicyTag . Among others
ContainerTypes in the argument list, then TensorTraits must exist for all of them |
size | only the first size pointers are used in the matrix (i.e. the number of columns is size ) |
std::vector< const ContainerType * > dg::asPointers | ( | const std::vector< ContainerType > & | in | ) |
Convert a vector of vectors to a vector of pointers.
A convenience function that can be used in combination with asDenseMatrix
in | a collection of vectors that form the columns of the dense matrix |
ContainerType | Any class for which a specialization of TensorTraits exists and which fulfills the requirements of the there defined data and execution policies derived from AnyVectorTag and AnyPolicyTag . Among others
ContainerTypes in the argument list, then TensorTraits must exist for all of them |