|
template<typename T , typename INI_T > |
bool | ccgl::utils_array::Initialize1DArray (int row, T *&data, INI_T init_value) |
| Initialize DT_Array1D data 更多...
|
|
template<typename T , typename INI_T > |
bool | ccgl::utils_array::Initialize1DArray (int row, T *&data, INI_T *init_data) |
| Initialize DT_Array1D data based on an existed array 更多...
|
|
template<typename T , typename INI_T > |
bool | ccgl::utils_array::Initialize2DArray (int row, int col, T **&data, INI_T init_value) |
| Initialize DT_Array2D data 更多...
|
|
template<typename T , typename INI_T > |
bool | ccgl::utils_array::Initialize2DArray (int row, int col, T **&data, INI_T **init_data) |
| Initialize DT_Array2D data based on an existed array The usage of const T * const * is refers to http://blog.csdn.net/pmt123456/article/details/50813564 更多...
|
|
template<typename T1 , typename T2 > |
bool | ccgl::utils_array::Initialize2DArray (T1 *init_data, int &rows, int &max_cols, T2 **&data) |
| Initialize irregular DT_Array2D data based on an existed 1D array 更多...
|
|
template<typename T > |
void | ccgl::utils_array::Release1DArray (T *&data) |
| Release DT_Array1D data 更多...
|
|
template<typename T > |
void | ccgl::utils_array::Release2DArray (T **&data) |
| Release DT_Array2D data 更多...
|
|
template<typename T > |
void | ccgl::utils_array::BatchRelease1DArray (T *&data,...) |
| Batch release of 1D array Variable arguments with the end of nullptr . 更多...
|
|
template<typename T > |
void | ccgl::utils_array::BatchRelease2DArray (int nrows, T **&data,...) |
| Batch release of 2D array, 更多...
|
|
void | ccgl::utils_array::Output1DArrayToTxtFile (int n, const float *data, const char *filename) |
| Write 1D array to a file 更多...
|
|
void | ccgl::utils_array::Output2DArrayToTxtFile (int rows, int cols, const float **data, const char *filename) |
| Write 2D array to a file 更多...
|
|
template<typename T > |
void | ccgl::utils_array::Read1DArrayFromTxtFile (const char *filename, int &rows, T *&data) |
| Read 1D array from file The input file should follow the format: a 1D array sized rows * 1 更多...
|
|
template<typename T > |
void | ccgl::utils_array::Read2DArrayFromTxtFile (const char *filename, int &rows, T **&data) |
| Read 2D array from file The input file should follow the format: a 2D array sized rows * rows 更多...
|
|
template<typename T > |
void | ccgl::utils_array::Read2DArrayFromString (const char *s, int &rows, T **&data) |
| Read 2D array from string The input string should follow the format: float value, total number is rows * rows 更多...
|
|
template<typename T > |
bool | ccgl::utils_array::ValueInVector (T val, const vector< T > &vec) |
| If value in vector container 更多...
|
|
template<typename T > |
void | ccgl::utils_array::RemoveValueInVector (T val, vector< T > &vec) |
| Remove value in vector container 更多...
|
|
Template functions to initialize and release arrays.
- 作者
- Liangjun Zhu, zlj(at)lreis.ac.cn
- 版本
- 1.1