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
8
9namespace stan {
10namespace math {
11
17template <typename T,
18 require_all_kernel_expressions_and_none_scalar_t<T>* = nullptr>
19inline auto transpose(const var_value<T>& M) {
20 return M.transpose();
21}
22
23} // namespace math
24} // namespace stan
25
26#endif
27#endif
auto transpose(Arg &&a)
Transposes a kernel generator expression.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...