Particle Identification and Tracking
|
A N-D array. More...
#include <ndarray.h>
Public Member Functions | |
const T * | data_ptr () const |
Returns a const pointer to the data. More... | |
T & | operator() (const Tuple< int, N > &pos) |
Returns a reference to at element. More... | |
const T & | operator() (const Tuple< int, N > &pos) const |
Returns a const reference to at element. More... | |
T & | operator() (int pos) |
Returns a reference to at element. More... | |
const T & | operator() (int pos) const |
Returns a const reference to at element. More... | |
ND_Array (const Tuple< int, N > &dim) | |
~ND_Array () | |
void | print () const |
Prints a representation of the. More... | |
void | fill_test () |
Fills the array with the index of the positions, this assumes that the type is int or similar. More... | |
Static Public Attributes | |
static const int | rank_ = N |
Rank of matrix. More... | |
Private Member Functions | |
int | cord_to_indx (const Tuple< int, N > &pos) const |
Tuple< int, N > | indx_to_cord (int indx) const |
bool | increment_cord (Tuple< int, N > &cord) const |
Inrements to the next 2-D plane to. More... | |
Private Attributes | |
T * | data_ptr_ |
pointer to the data More... | |
const Tuple< int, N > | dims_ |
The dimensions. More... | |
const int * | dims_ptr_ |
Pointer to the data in dims_. More... | |
Tuple< int, N > | cum_dims_ |
the cumulative dimensions More... | |
const int * | cum_dims_ptr_ |
Pointer to data in cum_dims_. More... | |
int | elm_count_ |
Total number of elements. More... | |
A N-D array.
Not sure what this is used for. Maybe can get rid of it.
utilities::ND_Array< T, N >::ND_Array | ( | const Tuple< int, N > & | dim) |
References utilities::ND_Array< T, N >::cum_dims_, utilities::ND_Array< T, N >::cum_dims_ptr_, utilities::ND_Array< T, N >::data_ptr_, utilities::ND_Array< T, N >::dims_, utilities::ND_Array< T, N >::dims_ptr_, utilities::ND_Array< T, N >::elm_count_, utilities::Tuple< T, length >::get_ptr(), utilities::Tuple< T, length >::prod(), and utilities::ND_Array< T, N >::rank_.
utilities::ND_Array< T, N >::~ND_Array | ( | ) |
|
private |
|
inline |
Returns a const pointer to the data.
This is useful for dealing with wrappers.
void utilities::ND_Array< T, N >::fill_test | ( | ) |
Fills the array with the index of the positions, this assumes that the type is int or similar.
Referenced by main().
|
private |
Inrements to the next 2-D plane to.
|
private |
T & utilities::ND_Array< T, N >::operator() | ( | const Tuple< int, N > & | pos) |
Returns a reference to at element.
const T & utilities::ND_Array< T, N >::operator() | ( | const Tuple< int, N > & | pos) | const |
Returns a const reference to at element.
T & utilities::ND_Array< T, N >::operator() | ( | int | pos) |
Returns a reference to at element.
const T & utilities::ND_Array< T, N >::operator() | ( | int | pos) | const |
Returns a const reference to at element.
void utilities::ND_Array< T, N >::print | ( | ) | const |
Prints a representation of the.
Referenced by main().
|
private |
the cumulative dimensions
Referenced by utilities::ND_Array< T, N >::ND_Array().
|
private |
Pointer to data in cum_dims_.
Referenced by utilities::ND_Array< T, N >::ND_Array().
|
private |
pointer to the data
Referenced by utilities::ND_Array< utilities::Tuplef, utilities::Tuplei::length_ >::data_ptr(), and utilities::ND_Array< T, N >::ND_Array().
|
private |
The dimensions.
Referenced by utilities::ND_Array< T, N >::ND_Array().
|
private |
Pointer to the data in dims_.
Referenced by utilities::ND_Array< T, N >::ND_Array().
|
private |
Total number of elements.
Referenced by utilities::ND_Array< T, N >::ND_Array().
|
static |
Rank of matrix.
Referenced by utilities::ND_Array< T, N >::ND_Array().