MyraMath
syev.h
Go to the documentation of this file.
1 // ========================================================================= //
2 // This file is part of MyraMath, copyright (c) 2014-2019 by Ryan A Chilton //
3 // and distributed by MyraCore, LLC. See LICENSE.txt for license terms. //
4 // ========================================================================= //
5 
6 #ifndef MYRAMATH_DENSE_SYEV_H
7 #define MYRAMATH_DENSE_SYEV_H
8 
14 #include <myramath/MYRAMATH_EXPORT.h>
16 
17 #include <utility>
18 
19 namespace myra {
20 
21 // Forward declarations.
22 template<class Number> class Matrix;
23 template<class Number> class MatrixRange;
24 template<class Number> class CMatrixRange;
25 template<class Number> class DiagonalMatrix;
26 
28 // Note, only the lower triangle of A needs to be defined upon input, the other triangle is assumed.
30 MYRAMATH_EXPORT DiagonalMatrix<NumberS> syev_inplace(const MatrixRange<NumberS>& A);
31 MYRAMATH_EXPORT DiagonalMatrix<NumberD> syev_inplace(const MatrixRange<NumberD>& A);
33 
35 // Note, only the lower triangle of A needs to be defined upon input, the other triangle is assumed.
37 MYRAMATH_EXPORT std::pair<Matrix<NumberS>, DiagonalMatrix<NumberS> > syev(const CMatrixRange<NumberS>& A);
38 MYRAMATH_EXPORT std::pair<Matrix<NumberD>, DiagonalMatrix<NumberD> > syev(const CMatrixRange<NumberD>& A);
40 
41 } // namespace
42 
43 #endif
Definition: syntax.dox:1
Various utility functions/classes related to scalar Number types.