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

◆ apply_scalar_ternary() [2/3]

template<typename F , typename T1 , typename T2 , typename T3 , require_all_eigen_t< T1, T2, T3 > * = nullptr>
auto stan::math::apply_scalar_ternary ( F &&  f,
T1 &&  x,
T2 &&  y,
T3 &&  z 
)
inline

Specialization for use with three Eigen inputs.

Eigen's ternaryExpr framework is used for more efficient indexing of both row- and column-major inputs without separate loops.

Template Parameters
T1Eigen type of first argument to which functor is applied.
T2Eigen type Type of second argument to which functor is applied.
T3Eigen type of third argument to which functor is applied.
FType of functor to apply.
Parameters
xFirst Eigen input to which operation is applied.
ySecond Eigen input to which operation is applied.
zThird Eigen input to which operation is applied.
ffunctor to apply to Eigen input.
Returns
Eigen object with result of applying functor to inputs.

Definition at line 61 of file apply_scalar_ternary.hpp.