Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ transpose() [1/4]

template<typename Arg , typename = require_all_kernel_expressions_and_none_scalar_t<Arg>>
auto stan::math::transpose ( Arg &&  a)
inline

Transposes a kernel generator expression.

Transposition modifies how its argument is indexed. If a matrix is both an argument and result of such an operation (such as in a = transpose(a); ), the result will be wrong due to aliasing. In such case the expression should be evaluating in a temporary by doing a = transpose(a).eval();.

Template Parameters
Argtype of the argument expression.
Parameters
aargument to transposition

Definition at line 139 of file transpose.hpp.