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

◆ conditional_copy_and_promote()

template<template< typename... > class Filter, typename PromotedType = stan::math::var, COPY_TYPE CopyType = COPY_TYPE::DEEP, typename... Args>
auto stan::math::laplace_likelihood::internal::conditional_copy_and_promote ( Args &&...  args)
inline

Conditional copy and promote a type's scalar type to a PromotedType.

Template Parameters
Filtertype trait with a static constexpr bool member value that is true if the type should be promoted. Otherwise, the type is left unchanged.
PromotedTypetype to promote the scalar to.
CopyTypetype of copy to perform.
Argsvariadic arguments.
Parameters
argsvariadic arguments to conditionally copy and promote.
Returns
a tuple where each element is either a reference to the original argument or a promoted copy of the argument.

Definition at line 55 of file laplace_likelihood.hpp.