MyraMath
power.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_POWER_H
7 #define MYRAMATH_ITERATIVE_POWER_H
8 
14 #include <myramath/MYRAMATH_EXPORT.h>
15 
16 namespace myra {
17 
18 // Forward declarations.
19 template<class Number> class Action;
20 template<class Number> class VectorRange;
21 template<class Number> class MatrixRange;
22 template<class Number> class DiagonalMatrix;
23 
25 MYRAMATH_EXPORT float power(const Action<float >& A, const VectorRange<float >& x, float tolerance = 1.0e-4f, int iterations = 100);
26 MYRAMATH_EXPORT double power(const Action<double>& A, const VectorRange<double>& x, double tolerance = 1.0e-8 , int iterations = 100);
27 
29 MYRAMATH_EXPORT DiagonalMatrix<float > power(const Action<float >& A, const MatrixRange<float >& X, float tolerance = 1.0e-4f, int iterations = 100);
30 MYRAMATH_EXPORT DiagonalMatrix<double> power(const Action<double>& A, const MatrixRange<double>& X, double tolerance = 1.0e-8 , int iterations = 100);
31 
32 } // namespace myra
33 
34 #endif
Definition: syntax.dox:1