RepastHPC  2.3.1
Public Member Functions | List of all members
repast::DenseMatrix< T > Class Template Reference

A dense matrix implementation that stores each cell individually. More...

#include <matrix.h>

Inheritance diagram for repast::DenseMatrix< T >:
repast::Matrix< T >

Public Member Functions

 DenseMatrix (const DenseMatrix< T > &)
 Creates a DenseMatrix as a copy of the specified DenseMatrix.
 
DenseMatrix< T > & operator= (const DenseMatrix< T > &)
 
 DenseMatrix (const Point< int > &shape, const T &defValue=T())
 Creates a DenseMatrix of the specified shape and default value.
 
T & get (const Point< int > &index)
 Gets the value at the specified index.
 
void set (const T &value, const Point< int > &index)
 Sets the value at the specified index.
 
- Public Member Functions inherited from repast::Matrix< T >
 Matrix (const Point< int > &size, const T &defaultValue=T())
 Creates a matrix of the specified size and with the specified default value. More...
 
T & operator[] (const Point< int > &index)
 
const T & operator[] (const Point< int > &index) const
 
const T & defaultValue () const
 Gets the default value of any unset matrix cell.
 
const Point< int > shape () const
 Gets the shape (i.e. More...
 

Additional Inherited Members

- Protected Member Functions inherited from repast::Matrix< T >
int calcIndex (const Point< int > &index)
 
void boundsCheck (const Point< int > &index)
 
void create ()
 
- Protected Attributes inherited from repast::Matrix< T >
int * stride
 
defValue
 
Point< int > _size
 
int dCount
 

Detailed Description

template<typename T>
class repast::DenseMatrix< T >

A dense matrix implementation that stores each cell individually.


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