template<class T>
class shogun::CArray3< T >
Template class Array3 implements a dense three dimensional array.
Note that depending on compile options everything will be inlined, such that this is as high performance 3d-array implementation without error checking.
Definition at line 28 of file Array3.h.
Public Member Functions |
| | CArray3 () |
| | CArray3 (int32_t dim1, int32_t dim2, int32_t dim3) |
| | CArray3 (T *p_array, int32_t dim1, int32_t dim2, int32_t dim3, bool p_free_array=true, bool p_copy_array=false) |
| | CArray3 (const T *p_array, int32_t dim1, int32_t dim2, int32_t dim3) |
| virtual | ~CArray3 () |
| void | set_array_name (const char *p_name) |
| void | get_array_size (int32_t &dim1, int32_t &dim2, int32_t &dim3) |
| int32_t | get_dim1 () |
| int32_t | get_dim2 () |
| int32_t | get_dim3 () |
| void | zero () |
| void | set_const (T const_elem) |
| T * | get_array () |
| void | set_array (T *p_array, int32_t dim1, int32_t dim2, int32_t dim3, bool p_free_array, bool copy_array=false) |
| bool | resize_array (int32_t dim1, int32_t dim2, int32_t dim3) |
| T | get_element (int32_t idx1, int32_t idx2, int32_t idx3) const |
| bool | set_element (T p_element, int32_t idx1, int32_t idx2, int32_t idx3) |
| const T & | element (int32_t idx1, int32_t idx2, int32_t idx3) const |
| T & | element (int32_t idx1, int32_t idx2, int32_t idx3) |
| T & | element (T *p_array, int32_t idx1, int32_t idx2, int32_t idx3) |
| T & | element (T *p_array, int32_t idx1, int32_t idx2, int32_t idx3, int32_t p_dim1_size, int32_t p_dim2_size) |
| CArray3< T > & | operator= (const CArray3< T > &orig) |
| void | display_size () const |
| void | display_array () const |
| virtual const char * | get_name () |
Protected Attributes |
| int32_t | dim1_size |
| int32_t | dim2_size |
| int32_t | dim3_size |