Loading...
Searching...
No Matches
FDMLinearSystem2.hpp
Go to the documentation of this file.
Definition Matrix.hpp:30
Definition pybind11Utils.hpp:21
Array2< FDMMatrixRow2 > FDMMatrix2
Matrix type for 2-D finite differencing.
Definition FDMLinearSystem2.hpp:37
MatrixCSR< double > MatrixCSRD
Double-type CSR matrix.
Definition MatrixCSR.hpp:448
Array2< double > FDMVector2
Vector type for 2-D finite differencing.
Definition FDMLinearSystem2.hpp:34
BLAS operator wrapper for 2-D finite differencing.
Definition FDMLinearSystem2.hpp:76
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 ScalarType L2Norm(const VectorType &v)
Returns L2-norm of the given vector v.
static void AXPlusY(double a, const VectorType &x, const VectorType &y, VectorType *result)
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 void Set(ScalarType s, MatrixType *result)
Sets entire element of given matrix result with scalar s.
static double Dot(const VectorType &a, const VectorType &b)
Performs dot product with vector a and b.
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.
BLAS operator wrapper for compressed 2-D finite differencing.
Definition FDMLinearSystem2.hpp:118
static void Residual(const MatrixType &a, const VectorType &x, const VectorType &b, VectorType *result)
Computes residual vector (b - ax).
static void Set(const VectorType &v, VectorType *result)
Copies entire element of given vector result with other vector v.
static void MVM(const MatrixType &m, const VectorType &v, VectorType *result)
Performs matrix-vector multiplication.
static void Set(const MatrixType &m, MatrixType *result)
Copies entire element of given matrix result with other matrix v.
static void Set(ScalarType s, VectorType *result)
Sets entire element of given vector result with scalar s.
static ScalarType L2Norm(const VectorType &v)
Returns L2-norm of the given vector v.
static void AXPlusY(double a, const VectorType &x, const VectorType &y, VectorType *result)
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.
static ScalarType LInfNorm(const VectorType &v)
Returns Linf-norm of the given vector v.
Compressed linear system (Ax=b) for 2-D finite differencing.
Definition FDMLinearSystem2.hpp:60
MatrixCSRD A
System matrix.
Definition FDMLinearSystem2.hpp:65
VectorND x
Solution vector.
Definition FDMLinearSystem2.hpp:68
Linear system (Ax=b) for 2-D finite differencing.
Definition FDMLinearSystem2.hpp:41
void Resize(const Vector2UZ &size)
Resizes the arrays with given grid size.
The row of FDMMatrix2 where row corresponds to (i, j) grid point.
Definition FDMLinearSystem2.hpp:22
double center
Diagonal component of the matrix (row, row).
Definition FDMLinearSystem2.hpp:24
double up
Off-diagonal element where column refers to (i, j+1) grid point.
Definition FDMLinearSystem2.hpp:30
double right
Off-diagonal element where column refers to (i+1, j) grid point.
Definition FDMLinearSystem2.hpp:27
1.9.8