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

详细描述

template<class Operand, class ReturnType, class UnaryOp>
struct shogun::linalg::implementation::elementwise_unary_operation< Backend::NATIVE, Operand, ReturnType, UnaryOp >

Specialization for elementwise_unary_operation with NATIVE backend. The operand types MUST be of CPU types (SGMatrix/SGVector).

在文件 ElementwiseUnaryOperation.h71 行定义.

Public 类型

using T = typename Operand::Scalar
 
using ST = typename ReturnType::Scalar
 

静态 Public 成员函数

static void compute (Operand operand, ReturnType result, UnaryOp unary_op)
 

成员类型定义说明

using ST = typename ReturnType::Scalar

The scalar type of the result

在文件 ElementwiseUnaryOperation.h77 行定义.

using T = typename Operand::Scalar

The scalar type of the operand

在文件 ElementwiseUnaryOperation.h74 行定义.

成员函数说明

static void compute ( Operand  operand,
ReturnType  result,
UnaryOp  unary_op 
)
static

Method compute that computes element-wise UnaryOp operation for the Operand.

参数
operandThe operand on which element-wise unary operation has to be performed
resultThe result of applying the unary operator on each scalar of the operand
unary_opThe custom unary operator (a functor, lambda expression or a function pointer)

在文件 ElementwiseUnaryOperation.h95 行定义.


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

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