Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Broadcast an expression in specified dimension(s).
If broadcasting rowwise, the argument must have a single column. If broadcasting colwise, the argument must have a single row. Further expressions can use this expression as if it had any size in broadcasted dimension, repeating the values.
Broadcasting evaluates the argument expression multiple times. For performance reasons don't broadcast slow operations. Instead evaluate them in a separate kernel.
Colwise | whether to broadcast Colwise |
Rowwise | whether to broadcast Rowwise |
T | type of input expression |
a | input expression |
Definition at line 125 of file broadcast.hpp.