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