ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
Public Member Functions | |
Array2D (std::size_t dim0=0, std::size_t dim1=0) | |
Constructor. More... | |
std::size_t | dim0 () const |
get dimension for first index More... | |
std::size_t | dim1 () const |
get dimension for second index More... | |
std::size_t | dim (unsigned char d) const |
get dimension More... | |
void | redim (std::size_t dim0, std::size_t dim1) |
change dimensions More... | |
T & | operator() (std::size_t i0, std::size_t i1) |
access element More... | |
std::size_t | indices2hash (std::size_t i0, std::size_t i1) const |
Convert cell coordinates to index/hash value. More... | |
void | hash2indices (std::size_t h, std::size_t &i0, std::size_t &i1) const |
Convert hash value to indices. More... | |
Protected Attributes | |
std::size_t | m_dim [2] |
Constructor.
parameter dim0 std::size_t dimension, first index parameter dim1 std::size_t dimension, second index
|
inline |
get dimension
retval std::size_t dimension for dth index parameter d unsigned char dimension
|
inline |
get dimension for first index
retval std::size_t dimension
|
inline |
get dimension for second index
retval std::size_t dimension
|
inline |
Convert hash value to indices.
parameter h std::size_t hash value parameter i0 std::size_t& first index parameter i1 std::size_t& second index
|
inline |
Convert cell coordinates to index/hash value.
retval Tindex index/hash parameter i0 std::size_t first index parameter i1 std::size_t second index
|
inline |
access element
parameter i0 std::size_t first index parameter i1 std::size_t second index
|
inline |
change dimensions
parameter dim0 std::size_t dimension, first index parameter dim1 std::size_t dimension, second index