|
SHOGUN
v3.2.0
|

Public 成员函数 | |
| SGNDArray () | |
| SGNDArray (T *a, index_t *d, index_t nd, bool ref_counting=true) | |
| SGNDArray (index_t *d, index_t nd, bool ref_counting=true) | |
| SGNDArray (const SGNDArray &orig) | |
| virtual | ~SGNDArray () |
| T * | get_matrix (index_t matIdx) const |
| void | transpose_matrix (index_t matIdx) const |
| const T & | operator[] (index_t index) const |
| T & | operator[] (index_t index) |
| int32_t | ref_count () |
Public 属性 | |
| T * | array |
| index_t * | dims |
| index_t | num_dims |
Protected 成员函数 | |
| virtual void | copy_data (const SGReferencedData &orig) |
| virtual void | init_data () |
| virtual void | free_data () |
| void | copy_refcount (const SGReferencedData &orig) |
| int32_t | ref () |
| int32_t | unref () |
| SGNDArray | ( | ) |
default constructor
在文件 SGNDArray.cpp 第 20 行定义.
constructor for setting params
在文件 SGNDArray.cpp 第 26 行定义.
constructor to create new ndarray in memory
在文件 SGNDArray.cpp 第 34 行定义.
copy constructor
在文件 SGNDArray.cpp 第 44 行定义.
|
virtual |
empty destructor
在文件 SGNDArray.cpp 第 50 行定义.
|
protectedvirtual |
|
protectedinherited |
copy refcount
在文件 SGReferencedData.cpp 第 58 行定义.
|
protectedvirtual |
| T* get_matrix | ( | index_t | matIdx | ) | const |
get a matrix formed by the two first dimensions
| matIdx | matrix index |
在文件 SGNDArray.h 第 46 行定义.
|
protectedvirtual |
| const T& operator[] | ( | index_t | index | ) | const |
| T& operator[] | ( | index_t | index | ) |
|
protectedinherited |
|
inherited |
| void transpose_matrix | ( | index_t | matIdx | ) | const |
transposes a matrix formed by the two first dimensions
| matIdx | matrix index |
在文件 SGNDArray.cpp 第 79 行定义.
|
protectedinherited |
decrement reference counter and deallocate object if refcount is zero before or after decrementing it
在文件 SGReferencedData.cpp 第 87 行定义.
| T* array |
array
在文件 SGNDArray.h 第 90 行定义.
| index_t* dims |
dimension sizes
在文件 SGNDArray.h 第 93 行定义.
| index_t num_dims |
number of dimensions
在文件 SGNDArray.h 第 96 行定义.