FullMatrix StoragePolicy which provides object owning semantics.
More...
#include <Matrix.hpp>
|
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 |
|
template<typename T>
class Opm::OwnData< T >
FullMatrix StoragePolicy which provides object owning semantics.
- Template Parameters
-
T | Element type of the FullMatrix. Often is an alias for . |
◆ OwnData()
Constructor.
- Parameters
-
[in] | sz | Number of elements in FullMatrix storage std::array. |
[in] | data | Initial data vector. If non-NULL, must contain elements which will be assigned to a freshly allocated storage std::array. If NULL, a element all-zero storage std::array will be constructed. |
◆ data()
Direct access to all data.
- Returns
- Pointer to first element of storage std::array.
◆ operator[]()
Storage element access.
- Parameters
-
[in] | i | Linear element index. |
- Returns
- Storage element at index .
◆ size()
Data size query.
- Returns
- Number of elements in storage std::array.
The documentation for this class was generated from the following file: