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

◆ colwise_broadcast()

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

Broadcast an expression in colwise dimmension.

The argument must have single row. Further expressions can use this expression as if it had any number of rows, repeating the values.

Broadcasting evaluates argument expression multiple times. For performance reasons don't broadcast slow operations. Instead evaluate them in a separate kernel.

Template Parameters
Ttype of input expression
Parameters
ainput expression
Returns
broadcast expression

Definition at line 163 of file broadcast.hpp.