MyraMath
axpy.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_AXPY_H
7 #define MYRAMATH_DENSE_AXPY_H
8 
15 #include <myramath/MYRAMATH_EXPORT.h>
16 
17 namespace myra {
18 
19 // Forward declarations.
20 template<class Number> class CVectorRange;
21 template<class Number> class VectorRange;
22 
24 MYRAMATH_EXPORT void axpy (int n, NumberS alpha, const NumberS* x, int ix, NumberS* y, int iy);
26 MYRAMATH_EXPORT void axpy (int n, NumberD alpha, const NumberD* x, int ix, NumberD* y, int iy);
27 MYRAMATH_EXPORT void axpy (int n, NumberC alpha, const NumberC* x, int ix, NumberC* y, int iy);
28 MYRAMATH_EXPORT void axpy (int n, NumberZ alpha, const NumberZ* x, int ix, NumberZ* y, int iy);
30 
32 MYRAMATH_EXPORT void axpy(NumberS alpha, const CVectorRange<NumberS>& x, const VectorRange<NumberS>& y);
34 MYRAMATH_EXPORT void axpy(NumberD alpha, const CVectorRange<NumberD>& x, const VectorRange<NumberD>& y);
35 MYRAMATH_EXPORT void axpy(NumberC alpha, const CVectorRange<NumberC>& x, const VectorRange<NumberC>& y);
36 MYRAMATH_EXPORT void axpy(NumberZ alpha, const CVectorRange<NumberZ>& x, const VectorRange<NumberZ>& y);
38 
39 } // namespace
40 
41 #endif
Represents a mutable VectorRange.
Definition: axpy.h:21
Definition: syntax.dox:1
Various utility functions/classes related to scalar Number types.
Represents a const VectorRange.
Definition: axpy.h:20
float NumberS
Useful typedefs.
Definition: Number.h:21