Go to the documentation of this file.
7 #ifndef INCLUDE_JET_FDM_LINEAR_SYSTEM3_H_
8 #define INCLUDE_JET_FDM_LINEAR_SYSTEM3_H_
155 #endif // INCLUDE_JET_FDM_LINEAR_SYSTEM3_H_
static void set(const VectorType &v, VectorType *result)
Copies entire element of given vector result with other vector v.
double up
Off-diagonal element where column refers to (i, j+1, k) grid point.
Definition: fdm_linear_system3.h:26
static void set(const VectorType &v, VectorType *result)
Copies entire element of given vector result with other vector v.
FdmMatrix3 MatrixType
Definition: fdm_linear_system3.h:75
double ScalarType
Definition: fdm_linear_system3.h:114
static double dot(const VectorType &a, const VectorType &b)
Performs dot product with vector a and b.
double ScalarType
Definition: fdm_linear_system3.h:73
double center
Diagonal component of the matrix (row, row).
Definition: fdm_linear_system3.h:20
static void residual(const MatrixType &a, const VectorType &x, const VectorType &b, VectorType *result)
Computes residual vector (b - ax).
double front
OFf-diagonal element where column refers to (i, j, k+1) grid point.
Definition: fdm_linear_system3.h:29
static ScalarType l2Norm(const VectorType &v)
Returns L2-norm of the given vector v.
BLAS operator wrapper for compressed 3-D finite differencing.
Definition: fdm_linear_system3.h:113
Array3< FdmMatrixRow3 > FdmMatrix3
Matrix type for 3-D finite differencing.
Definition: fdm_linear_system3.h:36
Definition: advection_solver2.h:18
static ScalarType lInfNorm(const VectorType &v)
Returns Linf-norm of the given vector v.
static void mvm(const MatrixType &m, const VectorType &v, VectorType *result)
Performs matrix-vector multiplication.
static void set(ScalarType s, VectorType *result)
Sets entire element of given vector result with scalar s.
static void axpy(double a, const VectorType &x, const VectorType &y, VectorType *result)
FdmVector3 VectorType
Definition: fdm_linear_system3.h:74
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).
Compressed linear system (Ax=b) for 3-D finite differencing.
Definition: fdm_linear_system3.h:57
FdmVector3 x
Solution vector.
Definition: fdm_linear_system3.h:44
3-D size class.
Definition: size3.h:19
static double dot(const VectorType &a, const VectorType &b)
Performs dot product with vector a and b.
static void axpy(double a, const VectorType &x, const VectorType &y, VectorType *result)
FdmMatrix3 A
System matrix.
Definition: fdm_linear_system3.h:41
static ScalarType lInfNorm(const VectorType &v)
Returns Linf-norm of the given vector v.
Linear system (Ax=b) for 3-D finite differencing.
Definition: fdm_linear_system3.h:39
static void set(const MatrixType &m, MatrixType *result)
Copies entire element of given matrix result with other matrix v.
static void mvm(const MatrixType &m, const VectorType &v, VectorType *result)
Performs matrix-vector multiplication.
static void set(ScalarType s, MatrixType *result)
Sets entire element of given matrix result with scalar s.
void clear()
Clears all the data.
FdmVector3 b
RHS vector.
Definition: fdm_linear_system3.h:47
MatrixCsrD A
System matrix.
Definition: fdm_linear_system3.h:59
MatrixCsrD MatrixType
Definition: fdm_linear_system3.h:116
static void set(const MatrixType &m, MatrixType *result)
Copies entire element of given matrix result with other matrix v.
Array3< double > FdmVector3
Vector type for 3-D finite differencing.
Definition: fdm_linear_system3.h:33
The row of FdmMatrix3 where row corresponds to (i, j, k) grid point.
Definition: fdm_linear_system3.h:18
double right
Off-diagonal element where colum refers to (i+1, j, k) grid point.
Definition: fdm_linear_system3.h:23
void resize(const Size3 &size)
Resizes the arrays with given grid size.
VectorND VectorType
Definition: fdm_linear_system3.h:115
3-D array class.
Definition: array3.h:43
VectorND b
RHS vector.
Definition: fdm_linear_system3.h:65
VectorND x
Solution vector.
Definition: fdm_linear_system3.h:62
static void set(ScalarType s, MatrixType *result)
Sets entire element of given matrix result with scalar s.
BLAS operator wrapper for 3-D finite differencing.
Definition: fdm_linear_system3.h:72
void clear()
Clears all the data.
static ScalarType l2Norm(const VectorType &v)
Returns L2-norm of the given vector v.