SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 成员函数 | 静态 Public 成员函数 | Public 属性 | Protected 成员函数
SGMatrixList< T > Singleton Reference

详细描述

template<class T>
singleton shogun::SGMatrixList< T >

shogun matrix list

在文件 SGMatrixList.h23 行定义.

类 SGMatrixList< T > 继承关系图:
Inheritance graph
[图例]

Public 成员函数

 SGMatrixList ()
 
 SGMatrixList (SGMatrix< T > *ml, int32_t nmats, bool ref_counting=true)
 
 SGMatrixList (int32_t nmats, bool ref_counting=true)
 
 SGMatrixList (SGMatrixList const &orig)
 
virtual ~SGMatrixList ()
 
SGMatrix< T > get_matrix (index_t index) const
 
SGMatrix< T > operator[] (index_t index) const
 
void set_matrix (index_t index, const SGMatrix< T > matrix)
 
int32_t ref_count ()
 

静态 Public 成员函数

static SGMatrixList< T > split (SGMatrix< T > matrix, int32_t num_components)
 

Public 属性

SGMatrix< T > * matrix_list
 
int32_t num_matrices
 

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 ()
 

构造及析构函数说明

default constructor

在文件 SGMatrixList.cpp18 行定义.

SGMatrixList ( SGMatrix< T > *  ml,
int32_t  nmats,
bool  ref_counting = true 
)

constructor for setting parameters

在文件 SGMatrixList.cpp24 行定义.

SGMatrixList ( int32_t  nmats,
bool  ref_counting = true 
)

constructor to create a new matrix list in memory

在文件 SGMatrixList.cpp30 行定义.

SGMatrixList ( SGMatrixList< T > const &  orig)

copy constructor

在文件 SGMatrixList.cpp37 行定义.

~SGMatrixList ( )
virtual

destructor

在文件 SGMatrixList.cpp43 行定义.

成员函数说明

void copy_data ( const SGReferencedData orig)
protectedvirtual

copy data

实现了 SGReferencedData.

在文件 SGMatrixList.cpp67 行定义.

void copy_refcount ( const SGReferencedData orig)
protectedinherited

copy refcount

在文件 SGReferencedData.cpp55 行定义.

void free_data ( )
protectedvirtual

free data

实现了 SGReferencedData.

在文件 SGMatrixList.cpp81 行定义.

SGMatrix< T > get_matrix ( index_t  index) const

get a matrix of the list

参数
indexmatrix index, index must be less than num_matrices although no check is performed in the method
返回
the matrix at position index of the list

在文件 SGMatrixList.cpp49 行定义.

void init_data ( )
protectedvirtual

initialize empty data

实现了 SGReferencedData.

在文件 SGMatrixList.cpp74 行定义.

SGMatrix< T > operator[] ( index_t  index) const

operator overload to get a matrix for read & write access

参数
indexmatrix index, index must be less than num_matrices although no check is performed in the method
返回
the matrix at position index of the list

在文件 SGMatrixList.cpp55 行定义.

int32_t ref ( )
protectedinherited

increase reference counter

返回
reference count

在文件 SGReferencedData.cpp64 行定义.

int32_t ref_count ( )
inherited

display reference counter

返回
reference count

在文件 SGReferencedData.cpp41 行定义.

void set_matrix ( index_t  index,
const SGMatrix< T >  matrix 
)

set a matrix of the list

参数
indexmatrix index, index must be less than num_matrices although no check is performed in the method
matrixmatrix to set at index

在文件 SGMatrixList.cpp61 行定义.

SGMatrixList< T > split ( SGMatrix< T >  matrix,
int32_t  num_components 
)
static

divide the matrix into a list of matrices. Each of the new matrices has the same number of rows as the original so the splits to the original matrix are done column-wise.

参数
matrixmatrix to split
num_componentsnumber of new matrices
返回
list of matrices

在文件 SGMatrixList.cpp89 行定义.

int32_t unref ( )
protectedinherited

decrement reference counter and deallocate object if refcount is zero before or after decrementing it

返回
reference count

在文件 SGReferencedData.cpp84 行定义.

类成员变量说明

SGMatrix<T>* matrix_list

matrix list

在文件 SGMatrixList.h91 行定义.

int32_t num_matrices

number of matrices of matrix list

在文件 SGMatrixList.h94 行定义.


The documentation for this singleton was generated from the following files:

SHOGUN 机器学习工具包 - 项目文档