Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Broadcast an expression in specified dimension(s) if the size along that dimension equals 1.
In that case further expressions can use this expression as if it had any size in the broadcast dimension, repeating the values.
Broadcasting evaluates the expression argument 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 203 of file optional_broadcast.hpp.