|
RepastHPC
2.3.1
|
A sparse matrix implementation that stores values in a map. More...
#include <matrix.h>
Public Member Functions | |
| SparseMatrix (const SparseMatrix< T > &) | |
| SparseMatrix< T > & | operator= (const SparseMatrix< T > &) |
| SparseMatrix (const Point< int > &size, 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 |
| T | defValue |
| Point< int > | _size |
| int | dCount |
A sparse matrix implementation that stores values in a map.
This should be used when the majority of the matrix cells contain the default value.
1.8.17