![]() |
SenK
SenK is a C++ library for high-performance linear solvers.
|
This namespace contains Level1 BLAS-style functions. More...
Functions | |
template<typename T > | |
void | Copy (T *x, T *y, int N) |
Copy x to y. More... | |
template<typename T > | |
void | Scal (T a, T *x, int N) |
Multiply x by a. More... | |
template<typename T > | |
void | Axpy (T a, T *x, T *y, int N) |
Compute y = a * x + y. More... | |
template<typename T > | |
void | Axpby (T a, T *x, T b, T *y, int N) |
Compute y = a * x + b * y. More... | |
template<typename T > | |
void | Axpyz (T a, T *x, T *y, T *z, int N) |
Compute z = a * x + y. More... | |
template<typename T > | |
T | Dot (T *x, T *y, int N) |
Compute the dot product of x and y. More... | |
template<typename T > | |
T | Nrm2 (T *x, int N) |
Compute the 2-norm of x. More... | |
template<typename T > | |
void | HadProd (T *x, T *y, int N) |
Compute the Hadamard product of x and y. More... | |
template<typename T > | |
void | HadDiv (T *x, T *y, int N) |
Compute the element-wise division of x and y. More... | |
template<typename T > | |
T | Ggen (T a, T b, T *c, T *s) |
Generate a Gives rotation matrix. More... | |
template<typename T > | |
void | Grot (T c, T s, T *a, T *b) |
Compute the Gives rotation. More... | |
This namespace contains Level1 BLAS-style functions.
|
inline |
Compute y = a * x + b * y.
T | The type of vectors. |
a | A scalar value. |
x | A 1D-array of size N. |
b | A scalar value. |
y | A 1D-array of size N. |
N | The size of vectors. |
Definition at line 66 of file senk_blas1.hpp.
|
inline |
Compute y = a * x + y.
T | The type of vectors. |
a | A scalar value. |
x | A 1D-array of size N. |
y | A 1D-array of size N. |
N | The size of vectors. |
Definition at line 52 of file senk_blas1.hpp.
|
inline |
Compute z = a * x + y.
T | The type of vectors. |
a | A scalar value. |
x | A 1D-array of size N. |
y | A 1D-array of size N. |
z | A 1D-array of size N. |
N | The size of vectors. |
Definition at line 80 of file senk_blas1.hpp.
|
inline |
Copy x to y.
T | The type of vectors. |
x | A 1D-array of size N. |
y | A 1D-array of size N. |
N | The size of vectors. |
Definition at line 27 of file senk_blas1.hpp.
|
inline |
Compute the dot product of x and y.
T | The type of vectors. |
x | A 1D-array of size N. |
y | A 1D-array of size N. |
N | The size of vectors. |
Definition at line 93 of file senk_blas1.hpp.
|
inline |
Generate a Gives rotation matrix.
T | The type of the vectors. |
a | A scalar value. |
b | A scalar value. |
c | The resulting value of cos. |
s | The resulting value of sin. |
Definition at line 146 of file senk_blas1.hpp.
|
inline |
Compute the Gives rotation.
T | The type of the vectors. |
c | The value of cos. |
s | THe value of sin. |
a | A rotated scalar value. |
b | A rotated scalar value. |
Definition at line 163 of file senk_blas1.hpp.
|
inline |
Compute the element-wise division of x and y.
T | The type of the vectors. |
x | A 1D-array of size N. |
y | A 1D-array of size N. |
N | The size of the vectors. |
Definition at line 133 of file senk_blas1.hpp.
|
inline |
Compute the Hadamard product of x and y.
T | The type of the vectors. |
x | A 1D-array of size N. |
y | A 1D-array of size N. |
N | The size of the vectors. |
Definition at line 121 of file senk_blas1.hpp.
|
inline |
Compute the 2-norm of x.
T | The type of the vector. |
x | A 1D-array of size N. |
N | The size of the vector. |
Definition at line 107 of file senk_blas1.hpp.
|
inline |
Multiply x by a.
T | The type of a vector. |
a | A scalar value. |
x | A 1D-array of size N. |
N | The size of a vector. |
Definition at line 39 of file senk_blas1.hpp.