Dune Core Modules (2.9.1)
Eigenvalue computations for the FieldMatrix class. More...
#include <algorithm>
#include <iostream>
#include <cmath>
#include <cassert>
#include <dune/common/exceptions.hh>
#include <dune/common/fvector.hh>
#include <dune/common/fmatrix.hh>
#include <dune/common/math.hh>
Go to the source code of this file.
Namespaces | |
namespace | Dune |
Dune namespace. | |
Functions | |
template<int dim, typename K > | |
static void | Dune::FMatrixHelp::eigenValues (const FieldMatrix< K, dim, dim > &matrix, FieldVector< K, dim > &eigenValues) |
calculates the eigenvalues of a symmetric field matrix More... | |
template<int dim, typename K > | |
static void | Dune::FMatrixHelp::eigenValuesVectors (const FieldMatrix< K, dim, dim > &matrix, FieldVector< K, dim > &eigenValues, FieldMatrix< K, dim, dim > &eigenVectors) |
calculates the eigenvalues and eigenvectors of a symmetric field matrix More... | |
template<int dim, typename K > | |
static void | Dune::FMatrixHelp::eigenValuesLapack (const FieldMatrix< K, dim, dim > &matrix, FieldVector< K, dim > &eigenValues) |
calculates the eigenvalues of a symmetric field matrix More... | |
template<int dim, typename K > | |
static void | Dune::FMatrixHelp::eigenValuesVectorsLapack (const FieldMatrix< K, dim, dim > &matrix, FieldVector< K, dim > &eigenValues, FieldMatrix< K, dim, dim > &eigenVectors) |
calculates the eigenvalues and -vectors of a symmetric field matrix More... | |
template<int dim, typename K , class C > | |
static void | Dune::FMatrixHelp::eigenValuesNonSym (const FieldMatrix< K, dim, dim > &matrix, FieldVector< C, dim > &eigenValues) |
calculates the eigenvalues of a non-symmetric field matrix More... | |
Detailed Description
Eigenvalue computations for the FieldMatrix class.
Function Documentation
◆ eigenValues()
|
static |
calculates the eigenvalues of a symmetric field matrix
- Parameters
-
[in] matrix matrix eigenvalues are calculated for [out] eigenValues FieldVector that contains eigenvalues in ascending order
- Note
- specializations for dim=1,2,3 exist, for dim>3 LAPACK::dsyev is used
References Dune::FMatrixHelp::eigenValues().
Referenced by Dune::FMatrixHelp::eigenValues(), Dune::FMatrixHelp::eigenValuesLapack(), Dune::FMatrixHelp::eigenValuesVectors(), and Dune::FMatrixHelp::eigenValuesVectorsLapack().
◆ eigenValuesLapack()
|
static |
calculates the eigenvalues of a symmetric field matrix
- Parameters
-
[in] matrix matrix eigenvalues are calculated for [out] eigenValues FieldVector that contains eigenvalues in ascending order
- Note
- LAPACK::dsyev is used to calculate the eigenvalues
References Dune::FMatrixHelp::eigenValues(), and Dune::FMatrixHelp::eigenValuesLapack().
Referenced by Dune::FMatrixHelp::eigenValuesLapack().
◆ eigenValuesNonSym()
|
static |
calculates the eigenvalues of a non-symmetric field matrix
- Parameters
-
[in] matrix matrix eigenvalues are calculated for [out] eigenValues FieldVector that contains eigenvalues in ascending order
- Note
- LAPACK::dgeev is used to calculate the eigenvalues
References Dune::FMatrixHelp::eigenValuesNonSym().
Referenced by Dune::FMatrixHelp::eigenValuesNonSym().
◆ eigenValuesVectors()
|
static |
calculates the eigenvalues and eigenvectors of a symmetric field matrix
- Parameters
-
[in] matrix matrix eigenvalues are calculated for [out] eigenValues FieldVector that contains eigenvalues in ascending order [out] eigenVectors FieldMatrix that contains the eigenvectors
- Note
- specializations for dim=1,2,3 exist, for dim>3 LAPACK::dsyev is used
References Dune::FMatrixHelp::eigenValues(), and Dune::FMatrixHelp::eigenValuesVectors().
Referenced by Dune::FMatrixHelp::eigenValuesVectors().
◆ eigenValuesVectorsLapack()
|
static |
calculates the eigenvalues and -vectors of a symmetric field matrix
- Parameters
-
[in] matrix matrix eigenvalues are calculated for [out] eigenValues FieldVector that contains eigenvalues in ascending order [out] eigenVectors FieldMatrix that contains the eigenvectors
- Note
- LAPACK::dsyev is used to calculate the eigenvalues and -vectors
References Dune::FMatrixHelp::eigenValues(), and Dune::FMatrixHelp::eigenValuesVectorsLapack().
Referenced by Dune::FMatrixHelp::eigenValuesVectorsLapack().