MyraMath
stev.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_STEV_H
7 #define MYRAMATH_DENSE_STEV_H
8 
14 #include <myramath/MYRAMATH_EXPORT.h>
16 
17 namespace myra {
18 
19 // Forward declarations.
20 template<class Number> class Matrix;
21 template<class Number> class MatrixRange;
22 template<class Number> class CMatrixRange;
23 template<class Number> class Vector;
24 template<class Number> class VectorRange;
25 template<class Number> class CVectorRange;
26 template<class Number> class DiagonalMatrix;
27 template<class Number> class DiagonalMatrixRange;
28 template<class Number> class CDiagonalMatrixRange;
29 
31 // Input is stored in two vectors, the diagonal in T0[0:N) and the offdiagonal in T1[0:N-1).
33 // Returns eigenvalues (D) as a real DiagonalMatrix and eigenvectors (X) as a real Matrix.
34 MYRAMATH_EXPORT std::pair<Matrix<NumberS>,DiagonalMatrix<NumberS> > stev(const CVectorRange<NumberS>& T0, const CVectorRange<NumberS>& T1);
35 MYRAMATH_EXPORT std::pair<Matrix<NumberD>,DiagonalMatrix<NumberD> > stev(const CVectorRange<NumberD>& T0, const CVectorRange<NumberD>& T1);
37 
39 // Input is stored in two vectors, the diagonal in T0[0:N) and the offdiagonal in T1[0:N-1).
41 // Overwrites T0 with eigenvalues D, and X with eigenvectors. Input T1 is clobbered.
42 MYRAMATH_EXPORT void stev_inplace(const MatrixRange<NumberS>& X, const VectorRange<NumberS>& T0, const VectorRange<NumberS>& T1);
43 MYRAMATH_EXPORT void stev_inplace(const MatrixRange<NumberD>& X, const VectorRange<NumberD>& T0, const VectorRange<NumberD>& T1);
45 
46 } // namespace
47 
48 #endif
Definition: syntax.dox:1
Various utility functions/classes related to scalar Number types.