17 #include "fastdeploy/function/eigen.h" 22 template <
typename X,
typename Y,
typename Dim>
23 void operator()(
const Eigen::DefaultDevice& dev, X* x, Y* y,
const Dim& dim) {
24 y->device(dev) = x->maximum(dim);
30 template <
typename X,
typename Y,
typename Dim>
31 void operator()(
const Eigen::DefaultDevice& dev, X* x, Y* y,
const Dim& dim) {
32 y->device(dev) = x->minimum(dim);
38 template <
typename X,
typename Y,
typename Dim>
39 void operator()(
const Eigen::DefaultDevice& dev, X* x, Y* y,
const Dim& dim) {
40 y->device(dev) = x->sum(dim);
46 template <
typename X,
typename Y,
typename Dim>
47 void operator()(
const Eigen::DefaultDevice& dev, X* x, Y* y,
const Dim& dim) {
48 y->device(dev) = x->all(dim);
54 template <
typename X,
typename Y,
typename Dim>
55 void operator()(
const Eigen::DefaultDevice& dev, X* x, Y* y,
const Dim& dim) {
56 y->device(dev) = x->any(dim);
62 template <
typename X,
typename Y,
typename Dim>
63 void operator()(
const Eigen::DefaultDevice& dev, X* x, Y* y,
const Dim& dim) {
64 y->device(dev) = x->mean(dim);
70 template <
typename X,
typename Y,
typename Dim>
71 void operator()(
const Eigen::DefaultDevice& dev, X* x, Y* y,
const Dim& dim) {
72 y->device(dev) = x->prod(dim);
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16