SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 类型 | 静态 Public 成员函数
convolve< Backend::EIGEN3, Matrix > 模板结构体 参考

详细描述

template<class Matrix>
struct shogun::linalg::implementation::convolve< Backend::EIGEN3, Matrix >

Partial specialization of convolve for the Eigen3 backend

在文件 Convolve.h91 行定义.

Public 类型

typedef Matrix::Scalar T
 
typedef Eigen::Matrix< T,
Eigen::Dynamic, Eigen::Dynamic > 
MatrixXt
 
typedef Eigen::Matrix< T,
Eigen::Dynamic, 1 > 
VectorXt
 

静态 Public 成员函数

static void compute (SGMatrix< T > X, SGMatrix< T > W, SGMatrix< T > Y, bool flip, bool overwrite, int32_t stride_x, int32_t stride_y)
 

成员类型定义说明

typedef Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic> MatrixXt

Eigen3 matrix type

在文件 Convolve.h97 行定义.

typedef Matrix::Scalar T

The scalar type

在文件 Convolve.h94 行定义.

typedef Eigen::Matrix<T,Eigen::Dynamic,1> VectorXt

Eigen3 vector type

在文件 Convolve.h100 行定义.

成员函数说明

static void compute ( SGMatrix< T X,
SGMatrix< T W,
SGMatrix< T Y,
bool  flip,
bool  overwrite,
int32_t  stride_x,
int32_t  stride_y 
)
static

Computes the 2D convolution of X with W

参数
XInput image
WFilter coefficients. The dimensions of the matrix must be odd-numbered.
YOutput image of the same size as the input image, as the borders of the input image are implicitly padded with zeros during the computation
flipIf true the filter coefficients are flipped, performing cross-correlation instead of convolution
overwriteIf true, the values in Y are overwritten with result of the computation. Otherwise, the result is added to the existing values in Y.
stride_xStride in the x (column) direction
stride_yStride in the y (row) direction

在文件 Convolve.h115 行定义.


该结构体的文档由以下文件生成:

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