BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Template class to store data of any type in multi-dimensional space (low-level). More...
Public Member Functions | |
LLData (const LLData< T > &right) | |
LLData (size_t rank, const int *dimensions) | |
~LLData () | |
T & | atCoordinate (int *coordinate) |
const T & | atCoordinate (int *coordinate) const |
const int * | dimensions () const |
size_t | getTotalSize () const |
T | getTotalSum () const |
LLData< double > | meanValues () const |
LLData< T > & | operator*= (const LLData< T > &right) |
LLData< T > & | operator+= (const LLData< T > &right) |
LLData< T > & | operator-= (const LLData< T > &right) |
LLData< T > & | operator/= (const LLData< T > &right) |
LLData< T > & | operator= (const LLData< T > &right) |
T & | operator[] (size_t i) |
const T & | operator[] (size_t i) const |
size_t | rank () const |
void | scaleAll (const T &factor) |
void | setAll (const T &value) |
Private Member Functions | |
void | allocate (size_t rank, const int *dimensions) |
bool | checkDimensions (size_t rank, const int *dimensions) const |
void | clear () |
size_t | convertCoordinate (int *coordinate) const |
Eigen::Matrix2d | getZeroElement () const |
T | getZeroElement () const |
Eigen::Matrix2d | getZeroElement () const |
void | swapContents (LLData< T > &other) |
Private Attributes | |
T * | m_data_array |
int * | m_dims |
size_t | m_rank |
Template class to store data of any type in multi-dimensional space (low-level).
Definition at line 90 of file LLData.h.
References LLData< T >::allocate(), LLData< T >::dimensions(), and LLData< T >::rank().
Definition at line 95 of file LLData.h.
References LLData< T >::allocate(), LLData< T >::dimensions(), LLData< T >::getTotalSize(), LLData< T >::m_data_array, and LLData< T >::rank().
|
private |
Definition at line 212 of file LLData.h.
Referenced by LLData< T >::LLData().
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
Definition at line 60 of file LLData.h.
References LLData< T >::m_dims.
Referenced by LLData< T >::LLData(), and HaveSameDimensions().
|
inline |
|
private |
Definition at line 17 of file LLData.cpp.
|
private |
|
private |
Definition at line 159 of file LLData.h.
References HaveSameDimensions().
Definition at line 137 of file LLData.h.
References HaveSameDimensions().
Definition at line 148 of file LLData.h.
References HaveSameDimensions().
Definition at line 170 of file LLData.h.
References HaveSameDimensions().
Definition at line 108 of file LLData.h.
|
inline |
|
inline |
|
inline |
Definition at line 59 of file LLData.h.
References LLData< T >::m_rank.
Referenced by LLData< T >::LLData(), and HaveSameDimensions().
void LLData< T >::scaleAll | ( | const T & | factor | ) |
void LLData< T >::setAll | ( | const T & | value | ) |
Definition at line 258 of file LLData.h.
References LLData< T >::m_data_array, LLData< T >::m_dims, LLData< T >::m_rank, and swap().
|
private |
Definition at line 73 of file LLData.h.
Referenced by LLData< T >::LLData(), and LLData< T >::swapContents().
|
private |
Definition at line 72 of file LLData.h.
Referenced by LLData< T >::dimensions(), and LLData< T >::swapContents().
|
private |
Definition at line 71 of file LLData.h.
Referenced by LLData< T >::rank(), and LLData< T >::swapContents().