Loading...
Searching...
No Matches
FDMLinearSystem3.hpp
Go to the documentation of this file.
Definition Matrix.hpp:30
Definition pybind11Utils.hpp:21
MatrixCSR< double > MatrixCSRD
Double-type CSR matrix.
Definition MatrixCSR.hpp:448
Array3< FDMMatrixRow3 > FDMMatrix3
Matrix type for 3-D finite differencing.
Definition FDMLinearSystem3.hpp:40
Array3< double > FDMVector3
Vector type for 3-D finite differencing.
Definition FDMLinearSystem3.hpp:37
BLAS operator wrapper for 3-D finite differencing.
Definition FDMLinearSystem3.hpp:79
static ScalarType LInfNorm(const VectorType &v)
Returns Linf-norm of the given vector v.
static void Set(const MatrixType &m, MatrixType *result)
Copies entire element of given matrix result with other matrix v.
static double Dot(const VectorType &a, const VectorType &b)
Performs dot product with vector a and b.
static void Set(ScalarType s, VectorType *result)
Sets entire element of given vector result with scalar s.
static void Set(ScalarType s, MatrixType *result)
Sets entire element of given matrix result with scalar s.
static void MVM(const MatrixType &m, const VectorType &v, VectorType *result)
Performs matrix-vector multiplication.
static ScalarType L2Norm(const VectorType &v)
Returns L2-norm of the given vector v.
static void Residual(const MatrixType &a, const VectorType &x, const VectorType &b, VectorType *result)
Computes residual vector (b - ax).
static void AXPlusY(double a, const VectorType &x, const VectorType &y, VectorType *result)
static void Set(const VectorType &v, VectorType *result)
Copies entire element of given vector result with other vector v.
BLAS operator wrapper for compressed 3-D finite differencing.
Definition FDMLinearSystem3.hpp:121
static void AXPlusY(double a, const VectorType &x, const VectorType &y, VectorType *result)
static void Residual(const MatrixType &a, const VectorType &x, const VectorType &b, VectorType *result)
Computes residual vector (b - ax).
static void Set(ScalarType s, VectorType *result)
Sets entire element of given vector result with scalar s.
static void MVM(const MatrixType &m, const VectorType &v, VectorType *result)
Performs matrix-vector multiplication.
static ScalarType LInfNorm(const VectorType &v)
Returns Linf-norm of the given vector v.
static void Set(const VectorType &v, VectorType *result)
Copies entire element of given vector result with other vector v.
static ScalarType L2Norm(const VectorType &v)
Returns L2-norm of the given vector v.
static void Set(const MatrixType &m, MatrixType *result)
Copies entire element of given matrix result with other matrix v.
static double Dot(const VectorType &a, const VectorType &b)
Performs dot product with vector a and b.
static void Set(ScalarType s, MatrixType *result)
Sets entire element of given matrix result with scalar s.
Compressed linear system (Ax=b) for 3-D finite differencing.
Definition FDMLinearSystem3.hpp:63
VectorND x
Solution vector.
Definition FDMLinearSystem3.hpp:71
MatrixCSRD A
System matrix.
Definition FDMLinearSystem3.hpp:68
Linear system (Ax=b) for 3-D finite differencing.
Definition FDMLinearSystem3.hpp:44
void Resize(const Vector3UZ &size)
Resizes the arrays with given grid size.
The row of FDMMatrix3 where row corresponds to (i, j, k) grid point.
Definition FDMLinearSystem3.hpp:22
double front
OFf-diagonal element where column refers to (i, j, k+1) grid point.
Definition FDMLinearSystem3.hpp:33
double right
Off-diagonal element where column refers to (i+1, j, k) grid point.
Definition FDMLinearSystem3.hpp:27
double center
Diagonal component of the matrix (row, row).
Definition FDMLinearSystem3.hpp:24
double up
Off-diagonal element where column refers to (i, j+1, k) grid point.
Definition FDMLinearSystem3.hpp:30
1.9.8