|
| Matrix (std::size_t rows, std::size_t cols) |
| Construct matrix with specified dimensions.
|
|
| Matrix () |
| Default constructor creates an empty matrix (0x0)
|
|
| Matrix (std::size_t rows, std::size_t cols, const std::vector< T > &data) |
| Construct matrix with specified dimensions and data.
|
|
T & | operator() (std::size_t row, std::size_t col) |
| Access matrix element (mutable).
|
|
const T & | operator() (std::size_t row, std::size_t col) const |
| Access matrix element (const).
|
|
Matrix< T > | transpose () const |
| Create transpose of this matrix.
|
|
std::size_t | ncol () const |
| Get number of columns.
|
|
std::size_t | nrow () const |
| Get number of rows.
|
|
template<typename T>
class qualpal::Matrix< T >
Dynamic matrix class with runtime-determined dimensions.
- Template Parameters
-
T | Element type (typically double or float). |
Stores elements in column-major order (Fortran-style). Provides element access, transposition, and dimension queries.
Example:
mat(0, 1) = 5.0;
double v = mat(1, 2);
Dynamic matrix class with runtime-determined dimensions.
- See also
- FixedMatrix for compile-time sized matrices
Definition at line 36 of file matrix.h.