MyraMath
ScaleAction.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_SCALEACTION_H
7 #define MYRAMATH_ITERATIVE_SCALEACTION_H
8 
14 #include <myramath/MYRAMATH_EXPORT.h>
16 
17 namespace myra {
18 
19 // Forward declarations.
20 template<class Number> class Action;
21 
23 MYRAMATH_EXPORT Action<NumberS> make_ScaleAction(NumberS scale, const Action<NumberS>& A);
25 MYRAMATH_EXPORT Action<NumberD> make_ScaleAction(NumberD scale, const Action<NumberD>& A);
26 MYRAMATH_EXPORT Action<NumberC> make_ScaleAction(NumberC scale, const Action<NumberC>& A);
27 MYRAMATH_EXPORT Action<NumberZ> make_ScaleAction(NumberZ scale, const Action<NumberZ>& A);
28 MYRAMATH_EXPORT Action<NumberS> make_ScaleAction(const Action<NumberS>& A, NumberS scale);
29 MYRAMATH_EXPORT Action<NumberD> make_ScaleAction(const Action<NumberD>& A, NumberD scale);
30 MYRAMATH_EXPORT Action<NumberC> make_ScaleAction(const Action<NumberC>& A, NumberC scale);
31 MYRAMATH_EXPORT Action<NumberZ> make_ScaleAction(const Action<NumberZ>& A, NumberZ scale);
33 
35 MYRAMATH_EXPORT Action<NumberS> operator* (NumberS scale, const Action<NumberS>& A);
37 MYRAMATH_EXPORT Action<NumberD> operator* (NumberD scale, const Action<NumberD>& A);
38 MYRAMATH_EXPORT Action<NumberC> operator* (NumberC scale, const Action<NumberC>& A);
39 MYRAMATH_EXPORT Action<NumberZ> operator* (NumberZ scale, const Action<NumberZ>& A);
40 MYRAMATH_EXPORT Action<NumberS> operator* (const Action<NumberS>& A, NumberS scale);
41 MYRAMATH_EXPORT Action<NumberD> operator* (const Action<NumberD>& A, NumberD scale);
42 MYRAMATH_EXPORT Action<NumberC> operator* (const Action<NumberC>& A, NumberC scale);
43 MYRAMATH_EXPORT Action<NumberZ> operator* (const Action<NumberZ>& A, NumberZ scale);
45 
47 MYRAMATH_EXPORT Action<NumberS> operator/ (const Action<NumberS>& A, NumberS scale);
49 MYRAMATH_EXPORT Action<NumberD> operator/ (const Action<NumberD>& A, NumberD scale);
50 MYRAMATH_EXPORT Action<NumberC> operator/ (const Action<NumberC>& A, NumberC scale);
51 MYRAMATH_EXPORT Action<NumberZ> operator/ (const Action<NumberZ>& A, NumberZ scale);
53 
54 } // namespace myra
55 
56 #endif
Definition: syntax.dox:1
Various utility functions/classes related to scalar Number types.