Jet  v1.3.3
Public Types | Static Public Member Functions | List of all members
jet::FdmCompressedBlas3 Struct Reference

BLAS operator wrapper for compressed 3-D finite differencing. More...

#include <jet/fdm_linear_system3.h>

Public Types

typedef double ScalarType
 
typedef VectorND VectorType
 
typedef MatrixCsrD MatrixType
 

Static Public Member Functions

static void set (ScalarType s, VectorType *result)
 Sets entire element of given vector result with scalar s. More...
 
static void set (const VectorType &v, VectorType *result)
 Copies entire element of given vector result with other vector v. More...
 
static void set (ScalarType s, MatrixType *result)
 Sets entire element of given matrix result with scalar s. More...
 
static void set (const MatrixType &m, MatrixType *result)
 Copies entire element of given matrix result with other matrix v. More...
 
static double dot (const VectorType &a, const VectorType &b)
 Performs dot product with vector a and b. More...
 
static void axpy (double a, const VectorType &x, const VectorType &y, VectorType *result)
 
static void mvm (const MatrixType &m, const VectorType &v, VectorType *result)
 Performs matrix-vector multiplication. More...
 
static void residual (const MatrixType &a, const VectorType &x, const VectorType &b, VectorType *result)
 Computes residual vector (b - ax). More...
 
static ScalarType l2Norm (const VectorType &v)
 Returns L2-norm of the given vector v. More...
 
static ScalarType lInfNorm (const VectorType &v)
 Returns Linf-norm of the given vector v. More...
 

Detailed Description

BLAS operator wrapper for compressed 3-D finite differencing.

Member Typedef Documentation

◆ MatrixType

◆ ScalarType

◆ VectorType

Member Function Documentation

◆ axpy()

static void jet::FdmCompressedBlas3::axpy ( double  a,
const VectorType x,
const VectorType y,
VectorType result 
)
static

Performs ax + y operation where a is a matrix and x and y are vectors.

◆ dot()

static double jet::FdmCompressedBlas3::dot ( const VectorType a,
const VectorType b 
)
static

Performs dot product with vector a and b.

◆ l2Norm()

static ScalarType jet::FdmCompressedBlas3::l2Norm ( const VectorType v)
static

Returns L2-norm of the given vector v.

◆ lInfNorm()

static ScalarType jet::FdmCompressedBlas3::lInfNorm ( const VectorType v)
static

Returns Linf-norm of the given vector v.

◆ mvm()

static void jet::FdmCompressedBlas3::mvm ( const MatrixType m,
const VectorType v,
VectorType result 
)
static

Performs matrix-vector multiplication.

◆ residual()

static void jet::FdmCompressedBlas3::residual ( const MatrixType a,
const VectorType x,
const VectorType b,
VectorType result 
)
static

Computes residual vector (b - ax).

◆ set() [1/4]

static void jet::FdmCompressedBlas3::set ( const MatrixType m,
MatrixType result 
)
static

Copies entire element of given matrix result with other matrix v.

◆ set() [2/4]

static void jet::FdmCompressedBlas3::set ( const VectorType v,
VectorType result 
)
static

Copies entire element of given vector result with other vector v.

◆ set() [3/4]

static void jet::FdmCompressedBlas3::set ( ScalarType  s,
MatrixType result 
)
static

Sets entire element of given matrix result with scalar s.

◆ set() [4/4]

static void jet::FdmCompressedBlas3::set ( ScalarType  s,
VectorType result 
)
static

Sets entire element of given vector result with scalar s.


The documentation for this struct was generated from the following file: