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 ( int  n,
const T &  def_val = T() 
)
inline

Definition at line 15 of file tri_matrix.hh.


Member Function Documentation

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

Definition at line 43 of file tri_matrix.hh.

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

Definition at line 24 of file tri_matrix.hh.

int GetSize ( ) const
inline

Definition at line 39 of file tri_matrix.hh.

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

Definition at line 29 of file tri_matrix.hh.

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

Definition at line 34 of file tri_matrix.hh.

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: