dune-pdelab
2.4-dev
|
Template specialization for Dune::DiagonalMatrix. More...
#include <dune/pdelab/gridfunctionspace/gridfunctionspaceutilities.hh>
Static Public Member Functions | |
template<typename T > | |
static RF | compute_derivative (const Dune::DiagonalMatrix< RF, size > &mat, const T &t, const unsigned int k) |
Template specialization for Dune::DiagonalMatrix.
This is a template specialization if the matrix type of the geometry transformation is equal to a Dune::DiagonalMatrix. The k-th component of the matrix-vector product can then be calculated as the product of the k-th diagonal element of the geometry transformation with the k-th derivative of the gradient on the reference element. This specialization especially occurs for YaspGrid.
|
inlinestatic |
[in] | mat | The jacobian of the geometry transformation, has to be a Dune::DiagonalMatrix. |
[in] | t | The gradient of the shape function on the reference element. |