Specialization for elementwise_unary_operation with NATIVE backend. The operand types MUST be of CPU types (SGMatrix/SGVector).
在文件 ElementwiseUnaryOperation.h 第 71 行定义.
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.h 第 77 行定义.
using T = typename Operand::Scalar |
The scalar type of the operand
在文件 ElementwiseUnaryOperation.h 第 74 行定义.
|
static |
Method compute that computes element-wise UnaryOp operation for the Operand.
operand | The operand on which element-wise unary operation has to be performed |
result | The result of applying the unary operator on each scalar of the operand |
unary_op | The custom unary operator (a functor, lambda expression or a function pointer) |
在文件 ElementwiseUnaryOperation.h 第 95 行定义.