OpenStructure
Public Member Functions
TriMatrix< T > Class Template Reference

#include <tri_matrix.hh>

Public Member Functions

 TriMatrix (int n, const T &def_val=T())
 
void Set (int i, int j, const T &sim)
 
const T & Get (int i, int j) const
 
T & operator() (int i, int j)
 
const T & operator() (int i, int j) const
 
int GetSize () const
 
std::vector< T > & Data ()
 

Detailed Description

template<typename T>
class ost::TriMatrix< T >

triangular matrix template

Definition at line 13 of file tri_matrix.hh.

Constructor & Destructor Documentation

◆ TriMatrix()

TriMatrix ( int  n,
const T &  def_val = T() 
)
inline

Definition at line 15 of file tri_matrix.hh.

Member Function Documentation

◆ Data()

std::vector<T>& Data ( )
inline

Definition at line 43 of file tri_matrix.hh.

◆ Get()

const T& Get ( int  i,
int  j 
) const
inline

Definition at line 24 of file tri_matrix.hh.

◆ GetSize()

int GetSize ( ) const
inline

Definition at line 39 of file tri_matrix.hh.

◆ operator()() [1/2]

T& operator() ( int  i,
int  j 
)
inline

Definition at line 29 of file tri_matrix.hh.

◆ operator()() [2/2]

const T& operator() ( int  i,
int  j 
) const
inline

Definition at line 34 of file tri_matrix.hh.

◆ Set()

void Set ( int  i,
int  j,
const T &  sim 
)
inline

Definition at line 19 of file tri_matrix.hh.


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