Loading...
Searching...
No Matches
fmatrix.hh File Reference
Common » Dense Matrix and Vector Template Library

Implements a matrix constructed from a given type representing a field and compile-time given number of rows and columns. More...

`#include <cmath>`
`#include <cstddef>`
`#include <iostream>`
`#include <algorithm>`
`#include <initializer_list>`
`#include <dune/common/boundschecking.hh>`
`#include <dune/common/exceptions.hh>`
`#include <dune/common/fvector.hh>`
`#include <dune/common/densematrix.hh>`
`#include <dune/common/precision.hh>`
`#include <dune/common/promotiontraits.hh>`
`#include <dune/common/typetraits.hh>`
`#include <dune/common/matrixconcepts.hh>`
`#include "fmatrixev.hh"`

Go to the source code of this file.

## Classes

struct | Dune::DenseMatVecTraits< FieldMatrix< K, ROWS, COLS > >
struct | Dune::FieldTraits< FieldMatrix< K, ROWS, COLS > >
class | Dune::FieldMatrix< K, ROWS, COLS >
| A dense n x m matrix. More...

## Namespaces

namespace | Dune
| Dune namespace
namespace | Dune::FMatrixHelp

## Functions

template<typename K>
static constexpr K | Dune::FMatrixHelp::invertMatrix (const FieldMatrix< K, 1, 1 > &matrix, FieldMatrix< K, 1, 1 > &inverse)
| invert scalar without changing the original matrix
template<typename K>
static constexpr K | Dune::FMatrixHelp::invertMatrix_retTransposed (const FieldMatrix< K, 1, 1 > &matrix, FieldMatrix< K, 1, 1 > &inverse)
| invert scalar without changing the original matrix
template<typename K>
static constexpr K | Dune::FMatrixHelp::invertMatrix (const FieldMatrix< K, 2, 2 > &matrix, FieldMatrix< K, 2, 2 > &inverse)
| invert 2x2 Matrix without changing the original matrix
template<typename K>
static constexpr K | Dune::FMatrixHelp::invertMatrix_retTransposed (const FieldMatrix< K, 2, 2 > &matrix, FieldMatrix< K, 2, 2 > &inverse)
template<typename K>
static constexpr K | Dune::FMatrixHelp::invertMatrix (const FieldMatrix< K, 3, 3 > &matrix, FieldMatrix< K, 3, 3 > &inverse)
| invert 3x3 Matrix without changing the original matrix
template<typename K>
static constexpr K | Dune::FMatrixHelp::invertMatrix_retTransposed (const FieldMatrix< K, 3, 3 > &matrix, FieldMatrix< K, 3, 3 > &inverse)
| invert 3x3 Matrix without changing the original matrix
template<class K, int m, int n, int p>
static constexpr void | Dune::FMatrixHelp::multMatrix (const FieldMatrix< K, m, n > &A, const FieldMatrix< K, n, p > &B, FieldMatrix< K, m, p > &ret)
| calculates ret = A * B
template<typename K, int rows, int cols>
static constexpr void | Dune::FMatrixHelp::multTransposedMatrix (const FieldMatrix< K, rows, cols > &matrix, FieldMatrix< K, cols, cols > &ret)
| calculates ret= A_t*A
template<typename K, int rows, int cols>
static constexpr void | Dune::FMatrixHelp::multAssignTransposed (const FieldMatrix< K, rows, cols > &matrix, const FieldVector< K, rows > &x, FieldVector< K, cols > &ret)
| calculates ret = matrix^T * x
template<typename K, int rows, int cols>
static constexpr FieldVector< K, rows > | Dune::FMatrixHelp::mult (const FieldMatrix< K, rows, cols > &matrix, const FieldVector< K, cols > &x)
| calculates ret = matrix * x
template<typename K, int rows, int cols>
static constexpr FieldVector< K, cols > | Dune::FMatrixHelp::multTransposed (const FieldMatrix< K, rows, cols > &matrix, const FieldVector< K, rows > &x)
| calculates ret = matrix^T * x
template<typename MAT, typename V1, typename V2>
static void | Dune::FMatrixHelp::multAssign (const DenseMatrix< MAT > &matrix, const DenseVector< V1 > &x, DenseVector< V2 > &ret)
| calculates ret = matrix * x

## Detailed Description

Implements a matrix constructed from a given type representing a field and compile-time given number of rows and columns.