|
opm-upscaling
|
FullMatrix StoragePolicy which provides object sharing semantics. More...
#include <Matrix.hpp>
Public Member Functions | |
| T & | operator[] (int i) |
| Storage element access. | |
| const T & | operator[] (int i) const |
| int | size () const |
| Data size query. | |
| T * | data () |
| Direct access to all data. | |
| const T * | data () const |
Protected Member Functions | |
| SharedData (int sz, T *data) | |
| Constructor. | |
FullMatrix StoragePolicy which provides object sharing semantics.
| T | Element type of the FullMatrix. Often T
double
|
|
inlineprotected |
Constructor.
| [in] | sz | Number of elements in FullMatrix storage std::array. |
| [in] | data | Initial data vector. If non-NULL, must point to a sz
sz
|
|
inline |
Direct access to all data.
|
inline |
Storage element access.
| [in] | i | Linear element index. |
|
inline |
Data size query.