MyraMath
IdentityAction.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_ITERATIVE_IDENTITYACTION_H
7 #define MYRAMATH_ITERATIVE_IDENTITYACTION_H
8 
14 #include <myramath/MYRAMATH_EXPORT.h>
16 
17 namespace myra {
18 
19 // Forward declarations.
20 template<class Number> class Action;
21 
23 template<class Number> Action<Number> make_IdentityAction(int N);
25 template<> MYRAMATH_EXPORT Action<NumberS> make_IdentityAction<NumberS>(int N);
26 template<> MYRAMATH_EXPORT Action<NumberD> make_IdentityAction<NumberD>(int N);
27 template<> MYRAMATH_EXPORT Action<NumberC> make_IdentityAction<NumberC>(int N);
28 template<> MYRAMATH_EXPORT Action<NumberZ> make_IdentityAction<NumberZ>(int N);
30 
31 } // namespace myra
32 
33 #endif
Action< Number > make_IdentityAction(int N)
Returns an Action that is just the NxN identity operator.
Definition: syntax.dox:1
Various utility functions/classes related to scalar Number types.