xc
|
Storage of n-dimensional array data. More...
#include <nDarray.h>
Public Member Functions | |
void | init_dim (const size_t &, const int &default_dim=1) |
Initialize dimensions vector. More... | |
void | init_dim (const std::vector< int > &pdim) |
Initialize dimensions vector. | |
void | clear_dim (void) |
bool | equal_dim (const std::vector< int > &rval) const |
void | init_data (void) |
Initialize data vector. | |
void | init_data (const double &) |
Initialize data vector. | |
void | init_data (const double *) |
Initialize data vector. | |
void | init_data (const std::vector< double > &) |
Initialize data vector. | |
void | init_data (const boost::python::list &) |
Initialize data vector. | |
void | reset_data_to (const double &) |
double * | get_data_ptr (void) |
const double * | get_data_ptr (void) const |
bool | equal_data (const std::vector< double > &other_data) const |
const double & | val (const size_t &where) const |
double & | val (const size_t &where) |
void | clear_data (void) |
void | clear (void) |
void | sum_data (const std::vector< double > &) |
void | substract_data (const std::vector< double > &) |
void | neg (void) |
double | sum (void) const |
bool | operator== (const nDarray_rep &rval) const |
const double & | operator() (int first) const |
double & | operator() (int first) |
const double & | operator() (int first, int second) const |
double & | operator() (int first, int second) |
const double & | operator() (int first, int second, int third) const |
double & | operator() (int first, int second, int third) |
const double & | operator() (int first, int second, int third, int fourth) const |
double & | operator() (int first, int second, int third, int fourth) |
Storage of n-dimensional array data.
void XC::nDarray_rep::init_dim | ( | const size_t & | sz, |
const int & | default_dim = 1 |
||
) |
Initialize dimensions vector.