matrix.hpp
Go to the documentation of this file.
virtual void upper_diag_solve(Vector &x, const Vector &y) const =0
Solves A*x = b for upper diagonal matrix.
virtual void size(int &n, int &m) const =0
Returns the number of rows n and the number of columns m of the matrix.
virtual void lower_unit_solve(Vector &y, const Vector &b) const =0
Solves A*x = b for lower unit diagonal matrix.
double get(int i, int j) const
Function to get a matrix element value at (i,j).
Definition: matrix.hpp:170
double & set(int i, int j)
Function to get a reference to matrix element value at (i,j).
Definition: matrix.hpp:180
MatrixMulVec operator*(const class Vector &vec) const
Operator for matrix-vector multiplication.
Definition: matrix.cpp:47
friend std::ostream & operator<<(std::ostream &os, const Vector &vec)
Operator for printing a vector.
Definition: mvector.cpp:434
N-dimensional vector.
MatrixMulVec(const Matrix &mat, const class Vector &vec)
Constructor for MMatrixMulVec with matrix mat and vector vec.
Definition: matrix.hpp:64