Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
transpose.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_OPENCL_REV_TRANSPOSE_HPP
2
#define STAN_MATH_OPENCL_REV_TRANSPOSE_HPP
3
#ifdef STAN_OPENCL
4
5
#include <
stan/math/opencl/kernel_generator.hpp
>
6
#include <
stan/math/opencl/prim/crossprod.hpp
>
7
#include <
stan/math/rev/core.hpp
>
8
9
namespace
stan
{
10
namespace
math {
11
17
template
<
typename
T,
18
require_all_kernel_expressions_and_none_scalar_t<T>* =
nullptr
>
19
inline
auto
transpose
(
const
var_value<T>
& M) {
20
return
M.transpose();
21
}
22
23
}
// namespace math
24
}
// namespace stan
25
26
#endif
27
#endif
stan::math::var_value
Definition
var_value_fwd_declare.hpp:8
stan::math::transpose
auto transpose(Arg &&a)
Transposes a kernel generator expression.
Definition
transpose.hpp:139
kernel_generator.hpp
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
crossprod.hpp
core.hpp
stan
math
opencl
rev
transpose.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.