|
EllAlgo 1.6.13
|
A simple matrix class for conjugate gradient calculations. More...
#include <conjugate_gradient.hpp>
Public Member Functions | |
| Matrix0 (size_t rows, size_t cols) | |
| Construct a new Matrix0 object. | |
| std::vector< double > & | operator[] (size_t i) |
| Access row i of the matrix. | |
| const std::vector< double > & | operator[] (size_t i) const |
| Access row i of the matrix (const version) | |
| size_t | rows () const |
| Get the number of rows. | |
| size_t | cols () const |
| Get the number of columns. | |
| Vector0 | dot (const Vector0 &v) const |
| Multiply the matrix by a vector. | |
A simple matrix class for conjugate gradient calculations.
This class provides basic matrix operations needed for the conjugate gradient method, including matrix-vector multiplication.
Construct a new Matrix0 object.
| [in] | rows | Number of rows |
| [in] | cols | Number of columns |
|
inline |
Get the number of columns.
Multiply the matrix by a vector.
| [in] | v | The vector to multiply |
Access row i of the matrix.
| [in] | i | Row index |
Access row i of the matrix (const version)
| [in] | i | Row index |
|
inline |
Get the number of rows.