Camargue
|
Class template for a square upper triangular matrix. More...
#include <util.hpp>
Public Member Functions | |
SquareUT ()=default | |
Default construct an empty matrix. | |
SquareUT (SquareUT &&M) noexcept | |
Move constructor. | |
SquareUT & | operator= (SquareUT &&M) noexcept |
Move assignment. | |
SquareUT (size_t size) | |
Construct a matrix of dimension size . | |
SquareUT (size_t size, T val) | |
Construct a matrix of dimension size with val as all entries. | |
T & | operator() (size_t row, size_t column) |
Access entry by matrix subscripting. | |
void | fill (const T &val) |
Fill all entries of this matrix with val . | |
Private Attributes | |
std::vector< std::vector< T > > | data |
The entries of the matrix, stored as a ragged vector of vectors. | |
Class template for a square upper triangular matrix.