Camargue
Public Member Functions | Private Attributes | List of all members
CMR::util::SquareUT< T > Class Template Reference

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.
 
SquareUToperator= (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.
 

Detailed Description

template<class T>
class CMR::util::SquareUT< T >

Class template for a square upper triangular matrix.


The documentation for this class was generated from the following file: