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

◆ apply_scalar_binary() [2/5]

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

Specialization for use with two Eigen inputs.

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

Template Parameters
T1Type of first argument to which functor is applied.
T2Type of second 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.
ffunctor to apply to Eigen input.
Returns
Eigen object with result of applying functor to inputs.

Definition at line 56 of file apply_scalar_binary.hpp.