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

◆ apply_scalar_ternary() [3/3]

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

Specialization for use where the third argument is a scalar.

Specialization for use where the first argument is a scalar.

Specialization for use where the second argument is a scalar.

The implementation is delegated to apply_scalar_binary to handle both Eigen and std::vector inputs, as well as nested containers.

Template Parameters
T1A container or nested container type.
T2A container or nested container type.
T3An Arithmetic, Integral, var, or fvar<T> type.
FType of functor to apply.
Parameters
xFirst input to which operation is applied.
ySecond input to which operation is applied.
zThird scalar input to which operation is applied.
ffunctor to apply to inputs.
Returns
container with result of applying functor to inputs.

The implementation is delegated to apply_scalar_binary to handle both Eigen and std::vector inputs, as well as nested containers.

Template Parameters
T1A container or nested container type.
T2An Arithmetic, Integral, var, or fvar<T> type.
T3A container or nester container type.
FType of functor to apply.
Parameters
xFirst input to which operation is applied.
ySecond scalar input to which operation is applied.
zThird input to which operation is applied.
ffunctor to apply to inputs.
Returns
container with result of applying functor to inputs.

The implementation is delegated to apply_scalar_binary to handle both Eigen and std::vector inputs, as well as nested containers.

Template Parameters
T1An Arithmetic, Integral, var, or fvar<T> type.
T2A container or nested container type.
T3A container or nested container type
FType of functor to apply.
Parameters
xFirst scalar input to which operation is applied.
ySecond input to which operation is applied.
zThird input to which operation is applied.
ffunctor to apply to inputs.
Returns
container with result of applying functor to inputs.

Definition at line 162 of file apply_scalar_ternary.hpp.