MyraMath
diag.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_DIAG_H
7 #define MYRAMATH_DENSE_DIAG_H
8 
14 #include <myramath/utility/detail/LIBPUBLIC.h>
16 
17 namespace myra {
18 
19 // Forward declarations.
20 template<class Number> class DiagonalMatrix;
21 template<class Number> class CMatrixRange;
22 template<class Number> class CLowerMatrixRange;
23 template<class Number> class CVectorRange;
24 
26 LIBPUBLIC DiagonalMatrix<NumberS> diag(const CMatrixRange<NumberS>& A);
28 LIBPUBLIC DiagonalMatrix<NumberD> diag(const CMatrixRange<NumberD>& A);
29 LIBPUBLIC DiagonalMatrix<NumberC> diag(const CMatrixRange<NumberC>& A);
30 LIBPUBLIC DiagonalMatrix<NumberZ> diag(const CMatrixRange<NumberZ>& A);
32 
34 LIBPUBLIC DiagonalMatrix<NumberS> diag(const CLowerMatrixRange<NumberS>& A);
36 LIBPUBLIC DiagonalMatrix<NumberD> diag(const CLowerMatrixRange<NumberD>& A);
37 LIBPUBLIC DiagonalMatrix<NumberC> diag(const CLowerMatrixRange<NumberC>& A);
38 LIBPUBLIC DiagonalMatrix<NumberZ> diag(const CLowerMatrixRange<NumberZ>& A);
40 
42 LIBPUBLIC DiagonalMatrix<NumberS> diag(const CVectorRange<NumberS>& x);
44 LIBPUBLIC DiagonalMatrix<NumberD> diag(const CVectorRange<NumberD>& x);
45 LIBPUBLIC DiagonalMatrix<NumberC> diag(const CVectorRange<NumberC>& x);
46 LIBPUBLIC DiagonalMatrix<NumberZ> diag(const CVectorRange<NumberZ>& x);
48 
49 } // namespace
50 
51 #endif
Definition: syntax.dox:1
Various utility functions/classes related to scalar Number types.