BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
LLData (size_t rank, const int *dimensions) | |
LLData (const LLData< T > &right) | |
LLData< T > & | operator= (const LLData< T > &right) |
~LLData () | |
LLData< double > | meanValues () const |
T & | operator[] (size_t i) |
const T & | operator[] (size_t i) const |
T & | atCoordinate (int *coordinate) |
const T & | atCoordinate (int *coordinate) 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) |
void | setAll (const T &value) |
void | scaleAll (const T &factor) |
size_t | getTotalSize () const |
size_t | getRank () const |
const int * | getDimensions () const |
T | getTotalSum () const |
Private Member Functions | |
void | allocate (size_t rank, const int *dimensions) |
void | clear () |
bool | checkDimensions (size_t rank, const int *dimensions) const |
size_t | convertCoordinate (int *coordinate) const |
void | swapContents (LLData< T > &other) |
T | getZeroElement () const |
Eigen::Matrix2d | getZeroElement () const |
Eigen::Matrix2d | getZeroElement () const |
Private Attributes | |
size_t | m_rank |
int * | m_dims |
T * | m_data_array |
Template class to store data of any type in multi-dimensional space (low-level).
Definition at line 87 of file LLData.h.
References LLData< T >::allocate().
Definition at line 92 of file LLData.h.
References LLData< T >::allocate(), LLData< T >::getDimensions(), LLData< T >::getRank(), LLData< T >::getTotalSize(), and LLData< T >::m_data_array.
Definition at line 105 of file LLData.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 134 of file LLData.h.
References HaveSameDimensions().
Definition at line 145 of file LLData.h.
References HaveSameDimensions().
Definition at line 156 of file LLData.h.
References HaveSameDimensions().
Definition at line 167 of file LLData.h.
References HaveSameDimensions().
void LLData< T >::setAll | ( | const T & | value | ) |
void LLData< T >::scaleAll | ( | const T & | factor | ) |
|
inline |
|
inline |
Definition at line 56 of file LLData.h.
References LLData< T >::m_rank.
Referenced by HaveSameDimensions(), and LLData< T >::LLData().
|
inline |
Definition at line 57 of file LLData.h.
References LLData< T >::m_dims.
Referenced by HaveSameDimensions(), and LLData< T >::LLData().
|
private |
Definition at line 209 of file LLData.h.
Referenced by LLData< T >::LLData().
|
inlineprivate |
|
inlineprivate |
Definition at line 255 of file LLData.h.
References LLData< T >::m_data_array, LLData< T >::m_dims, LLData< T >::m_rank, and swap().
|
private |
|
private |
Definition at line 17 of file LLData.cpp.
|
private |
|
private |
Definition at line 68 of file LLData.h.
Referenced by LLData< T >::getRank(), and LLData< T >::swapContents().
|
private |
Definition at line 69 of file LLData.h.
Referenced by LLData< T >::getDimensions(), and LLData< T >::swapContents().
|
private |
Definition at line 70 of file LLData.h.
Referenced by LLData< T >::LLData(), and LLData< T >::swapContents().