MyraMath
scal.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_SCAL_H
7 #define MYRAMATH_DENSE_SCAL_H
8 
15 
16 namespace myra {
17 
18 // Forward declarations.
19 template<class Number> class VectorRange;
20 
22 void scal(int n, NumberS alpha, NumberS* x, int ix);
23 void scal(int n, NumberD alpha, NumberD* x, int ix);
24 void scal(int n, NumberC alpha, NumberC* x, int ix);
25 void scal(int n, NumberZ alpha, NumberZ* x, int ix);
26 
28 void scal(NumberS alpha, const VectorRange<NumberS>& x);
29 void scal(NumberD alpha, const VectorRange<NumberD>& x);
30 void scal(NumberC alpha, const VectorRange<NumberC>& x);
31 void scal(NumberZ alpha, const VectorRange<NumberZ>& x);
32 
33 } // namespace
34 
35 #endif
Definition: syntax.dox:1
Various utility functions/classes related to scalar Number types.