SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Public Member Functions | Private Attributes | List of all members
smile::CMatrixDense< NumT > Struct Template Reference

matrix interface class that actually holds the entire matrix and returns its elements More...

#include <common.h>

Inheritance diagram for smile::CMatrixDense< NumT >:
Inheritance graph
[legend]
Collaboration diagram for smile::CMatrixDense< NumT >:
Collaboration graph
[legend]

Public Member Functions

 CMatrixDense (size_t s1, size_t s2)
 
virtual size_t size1 () const
 !! what if out-of-memory exception arises here?
 
virtual size_t size2 () const
 same for second
 
virtual NumT at (size_t i1, size_t i2) const
 return a regular value from 2d array
 
void set (size_t i1, size_t i2, NumT value)
 a way to set the value of matrix element
 
- Public Member Functions inherited from smile::CMatrix< NumT >
virtual bool isDense () const
 whether the matrix is dense or sparse (may be used to optimize calculations)
 
virtual size_t numElems () const
 number of possibly nonzero elements in sparse matrix More...
 
virtual NumT getElem (size_t index, size_t *i1, size_t *i2) const
 get an element from the matrix, 0<=index<numElems() More...
 

Private Attributes

std::vector< std::vector< NumT > > matrix
 matrix elements
 

Detailed Description

template<typename NumT>
struct smile::CMatrixDense< NumT >

matrix interface class that actually holds the entire matrix and returns its elements


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