Dune Core Modules (unstable)

dynmatrixev.hh File Reference

utility functions to compute eigenvalues for dense matrices. More...

#include <algorithm>
#include <memory>
#include <dune-common-config.hh>
#include "dynmatrix.hh"
#include "fmatrixev.hh"

Go to the source code of this file.

Namespaces

namespace  Dune
 Dune namespace.
 

Functions

template<typename K , class C >
static void Dune::DynamicMatrixHelp::eigenValuesNonSym (const DynamicMatrix< K > &matrix, DynamicVector< C > &eigenValues, std::vector< DynamicVector< K > > *eigenVectors=nullptr)
 calculates the eigenvalues of a symmetric field matrix More...
 

Detailed Description

utility functions to compute eigenvalues for dense matrices.

Function Documentation

◆ eigenValuesNonSym()

template<typename K , class C >
static void Dune::DynamicMatrixHelp::eigenValuesNonSym ( const DynamicMatrix< K > &  matrix,
DynamicVector< C > &  eigenValues,
std::vector< DynamicVector< K > > *  eigenVectors = nullptr 
)
static

calculates the eigenvalues of a symmetric field matrix

Parameters
[in]matrixmatrix eigenvalues are calculated for
[out]eigenValuesFieldVector that contains eigenvalues in ascending order
[out]eigenVectors(optional) list of right eigenvectors
Note
LAPACK::dgeev is used to calculate the eigen values

References Dune::DynamicMatrixHelp::eigenValuesNonSym(), and Dune::DenseMatrix< MAT >::rows().

Referenced by Dune::DynamicMatrixHelp::eigenValuesNonSym().

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 24, 23:30, 2024)