FDMLinearSystem3.h
Go to the documentation of this file.
105 static void Residual(const MatrixType& a, const VectorType& x, const VectorType& b, VectorType* result);
143 static void Residual(const MatrixType& a, const VectorType& x, const VectorType& b, VectorType* result);
MatrixCSRD A
System matrix.
Definition: FDMLinearSystem3.h:64
VectorND x
Solution vector.
Definition: FDMLinearSystem3.h:67
MatrixCSR< double > MatrixCSRD
Double-type CSR matrix.
Definition: MatrixCSR.h:475
static ScalarType L2Norm(const VectorType &v)
Returns L2-norm of the given vector v.
double up
Off-diagonal element where column refers to (i, j+1, k) grid point.
Definition: FDMLinearSystem3.h:29
static ScalarType L2Norm(const VectorType &v)
Returns L2-norm of the given vector v.
Array3< FDMMatrixRow3 > FDMMatrix3
Matrix type for 3-D finite differencing.
Definition: FDMLinearSystem3.h:39
static void AXPlusY(double a, const VectorType &x, const VectorType &y, VectorType *result)
Performs ax + y operation where a is a matrix and x and y are vectors.
Array3< double > FDMVector3
Vector type for 3-D finite differencing.
Definition: FDMLinearSystem3.h:36
static void MVM(const MatrixType &m, const VectorType &v, VectorType *result)
Performs matrix-vector multiplication.
BLAS operator wrapper for compressed 3-D finite differencing.
Definition: FDMLinearSystem3.h:115
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).
BLAS operator wrapper for 3-D finite differencing.
Definition: FDMLinearSystem3.h:77
Definition: pybind11Utils.h:24
static ScalarType LInfNorm(const VectorType &v)
Returns Linf-norm of the given vector v.
static double Dot(const VectorType &a, const VectorType &b)
Performs dot product with vector a and b.
static ScalarType LInfNorm(const VectorType &v)
Returns Linf-norm of the given vector v.
The row of FDMMatrix3 where row corresponds to (i, j, k) grid point.
Definition: FDMLinearSystem3.h:20
static void AXPlusY(double a, const VectorType &x, const VectorType &y, VectorType *result)
Performs ax + y operation where a is a matrix and x and y are vectors.
double center
Diagonal component of the matrix (row, row).
Definition: FDMLinearSystem3.h:23
double front
OFf-diagonal element where column refers to (i, j, k+1) grid point.
Definition: FDMLinearSystem3.h:32
static void Residual(const MatrixType &a, const VectorType &x, const VectorType &b, VectorType *result)
Computes residual vector (b - ax).
static double Dot(const VectorType &a, const VectorType &b)
Performs dot product with vector a and b.
double right
Off-diagonal element where column refers to (i+1, j, k) grid point.
Definition: FDMLinearSystem3.h:26
static void MVM(const MatrixType &m, const VectorType &v, VectorType *result)
Performs matrix-vector multiplication.
Compressed linear system (Ax=b) for 3-D finite differencing.
Definition: FDMLinearSystem3.h:61
Linear system (Ax=b) for 3-D finite differencing.
Definition: FDMLinearSystem3.h:42
static void Set(ScalarType s, VectorType *result)
Sets entire element of given vector result with scalar s.
void Resize(const Size3 &size)
Resizes the arrays with given grid size.