Go to the documentation of this file.
7 #ifndef INCLUDE_JET_BLAS_H_
8 #define INCLUDE_JET_BLAS_H_
26 template <
typename S,
typename V,
typename M>
77 #include "detail/blas-inl.h"
79 #endif // INCLUDE_JET_BLAS_H_
static void set(ScalarType s, VectorType *result)
Sets entire element of given vector result with scalar s.
static void residual(const MatrixType &a, const VectorType &x, const VectorType &b, VectorType *result)
Computes residual vector (b - ax).
static void set(const MatrixType &m, MatrixType *result)
Copies entire element of given matrix result with other matrix v.
Generic BLAS operator wrapper class.
Definition: blas.h:27
V VectorType
Definition: blas.h:29
static void mvm(const MatrixType &m, const VectorType &v, VectorType *result)
Performs matrix-vector multiplication.
S ScalarType
Definition: blas.h:28
Definition: advection_solver2.h:18
static ScalarType l2Norm(const VectorType &v)
Returns L2-norm of the given vector v.
M MatrixType
Definition: blas.h:30
static ScalarType dot(const VectorType &a, const VectorType &b)
Performs dot product with vector a and b.
static void set(const VectorType &v, VectorType *result)
Copies entire element of given vector result with other vector v.
static void set(ScalarType s, MatrixType *result)
Sets entire element of given matrix result with scalar s.
static void axpy(ScalarType a, const VectorType &x, const VectorType &y, VectorType *result)
static ScalarType lInfNorm(const VectorType &v)
Returns Linf-norm of the given vector v.