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

详细描述

template<typename T>
struct shogun::linalg::operations::sin< T >

Template struct sin for computing element-wise sin for matrices and vectors. The operator() is for NATIVE backend implementation. Methods compute_using_eigen3 are for computing element-wise sin using EIGEN3 backend.

在文件 Sin.h59 行定义.

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

Public 类型

using return_type = float64_t
 
using MatrixXt = Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic >
 
using VectorXt = Eigen::Matrix< T, Eigen::Dynamic, 1 >
 
using MapMatrixXt = Eigen::Map< MatrixXt >
 
using MapVectorXt = Eigen::Map< VectorXt >
 

Public 成员函数

 sin ()
 
return_type operator() (T &val) const
 
Eigen::MatrixXd compute_using_eigen3 (MapMatrixXt m) const
 
Eigen::VectorXd compute_using_eigen3 (MapVectorXt v) const
 
std::string get_operation () const
 

成员类型定义说明

Eigen3 matrix map type

在文件 Sin.h88 行定义.

Eigen3 vector map type

在文件 Sin.h91 行定义.

using MatrixXt = Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic>

Eigen3 matrix type

在文件 Sin.h82 行定义.

The return type

在文件 Sin.h62 行定义.

using VectorXt = Eigen::Matrix<T,Eigen::Dynamic,1>

Eigen3 vector type

在文件 Sin.h85 行定义.

构造及析构函数说明

sin ( )

在文件 Sin.h67 行定义.

成员函数说明

Eigen::MatrixXd compute_using_eigen3 ( MapMatrixXt  m) const
参数
mThe Eigen3 matrix map of the operand
返回
Element-wise sin in a newly allocated matrix

在文件 Sin.h97 行定义.

Eigen::VectorXd compute_using_eigen3 ( MapVectorXt  v) const
参数
vThe Eigen3 vector map of the operand
返回
Element-wise sin in a newly allocated vector

在文件 Sin.h106 行定义.

std::string get_operation ( ) const
inherited
返回
The OpenCL operation to be used in a OpenCL kernel

在文件 opencl_operation.h64 行定义.

return_type operator() ( T &  val) const
参数
valThe scalar value
返回
sin(val)

在文件 Sin.h75 行定义.


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

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