Automatic Differentiation
 
Loading...
Searching...
No Matches
transpose.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_TRANSPOSE_HPP
2#define STAN_MATH_PRIM_FUN_TRANSPOSE_HPP
3
6
7namespace stan {
8namespace math {
9
16template <typename T, require_matrix_t<T>* = nullptr>
17inline auto transpose(T&& m) {
18 return make_holder([](auto&& m_) { return m_.transpose(); },
19 std::forward<T>(m));
20}
21
22} // namespace math
23} // namespace stan
24#endif
auto transpose(Arg &&a)
Transposes a kernel generator expression.
auto make_holder(F &&func, Args &&... args)
Calls given function with given arguments.
Definition holder.hpp:481
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...