g4tools
5.4.0
|
Public Types | |
typedef std::vector< std::pair< unsigned int, unsigned int > > | cut_t |
typedef std::vector< unsigned int > | uints_t |
typedef std::vector< T >::iterator | vec_it_t |
typedef std::vector< T >::const_iterator | cons_vec_it_t |
Public Member Functions | |
array () | |
array (const uints_t &a_orders) | |
array (unsigned int a_dimension, unsigned int a_order) | |
virtual | ~array () |
array (const array &a_from) | |
array & | operator= (const array &a_from) |
array & | operator*= (const T &a_T) |
bool | operator== (const array &a_array) const |
bool | operator!= (const array &a_array) const |
array | operator* (const T &a_T) const |
void | copy (const array &a_from) |
void | clear () |
bool | configure (const uints_t &a_orders) |
size_t | dimension () const |
const uints_t & | orders () const |
size_t | size () const |
bool | set_value (const uints_t &a_is, const T &a_value) |
bool | value (const uints_t &a_is, T &a_value) const |
T | value_no_check (const uints_t &a_is) const |
void | reset () |
const std::vector< T > & | vector () const |
std::vector< T > & | vector () |
bool | fill (const std::vector< T > &a_values, cut_t *a_cut=0) |
bool | fill (unsigned int a_sz, const T *a_data, cut_t *a_cut=0) |
bool | equal (const array &a_array) const |
bool | equal (const array &a_array, T aEpsilon) const |
bool | is_proportional (const array &a_array, T &a_factor) const |
bool | add (const array &a_array, cut_t *a_cut=0) |
bool | subtract (const array &a_array) |
bool | multiply (const array &a_array) |
bool | divide (const array &a_array) |
bool | contract (const array &a_array, T &a_value) const |
void | add (const T &a_T, cut_t *a_cut=0) |
void | multiply (const T &a_T) |
bool | divide (const T &a_T) |
bool | invert () |
bool | offset (const uints_t &a_is, unsigned int &a_offset) const |
bool | indices (unsigned int a_offset, uints_t &a_is) const |
bool | accept (unsigned int a_index, const cut_t &a_cut) const |
void | set_constant (const T &a_v) |
void | set_zero () |
Static Public Member Functions | |
static const std::string & | s_class () |
static T | zero () |
static T | one () |
static T | minus_one () |
static T | two () |
Protected Attributes | |
uints_t | m_orders |
uints_t | m_offsets |
std::vector< T > | m_vector |
uints_t | m_is |
typedef std::vector<T>::const_iterator tools::array< T >::cons_vec_it_t |
typedef std::vector< std::pair<unsigned int,unsigned int> > tools::array< T >::cut_t |
typedef std::vector<unsigned int> tools::array< T >::uints_t |
typedef std::vector<T>::iterator tools::array< T >::vec_it_t |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
protected |
|
protected |
|
protected |
|
protected |