ergo
LR::SmallMatrix Class Reference

a class implementing dynamic resized two dimensional arrays. More...

#include <slr.h>

Classes

struct  RowProxy
 

Public Member Functions

 SmallMatrix (int sz)
 
 ~SmallMatrix ()
 
const RowProxy operator[] (int i)
 
void expand (int newSize)
 increase the dimension of the matrix without losing the data. More...
 

Private Attributes

ergo_realmat
 
int nsize
 

Detailed Description

a class implementing dynamic resized two dimensional arrays.

Constructor & Destructor Documentation

◆ SmallMatrix()

LR::SmallMatrix::SmallMatrix ( int  sz)
inlineexplicit

◆ ~SmallMatrix()

LR::SmallMatrix::~SmallMatrix ( )
inline

References mat.

Member Function Documentation

◆ expand()

void LR::SmallMatrix::expand ( int  newSize)

increase the dimension of the matrix without losing the data.

References mat, and nsize.

Referenced by LR::LRSolver::increaseSubspaceLimit().

◆ operator[]()

const RowProxy LR::SmallMatrix::operator[] ( int  i)
inline

References nsize.

Member Data Documentation

◆ mat

ergo_real* LR::SmallMatrix::mat
private

Referenced by expand(), and ~SmallMatrix().

◆ nsize

int LR::SmallMatrix::nsize
private

Referenced by expand(), and operator[]().


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