Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ compute_s2()

template<typename F , typename Theta , typename AMat , typename TupleArgs , typename Stream , require_eigen_vector_t< Theta > * = nullptr, require_tuple_t< TupleArgs > * = nullptr>
auto stan::math::laplace_likelihood::compute_s2 ( F &&  f,
Theta &&  theta,
AMat &&  A,
int  hessian_block_size,
TupleArgs &&  ll_args,
Stream *  msgs 
)
inline

A wrapper that accepts a tuple as arguments.

Template Parameters
FType of log likelhood function.
ThetaType of latent Gaussian ba
TupleArgsType of arguments for covariance function.
StreamType of stream for messages.
Parameters
fLog likelihood function.
thetaLatent Gaussian variable.
AMatrix storing initial tangents for higher-order differentiation (line 21 in Algorithm 4, https://arxiv.org/pdf/2306.14976)
hessian_block_sizeIf Hessian of log likelihood w.r.t theta is block diagonal, size of block.
ll_argsVariadic arguments for likelihood function.
msgsStreaming messages.

Definition at line 403 of file laplace_likelihood.hpp.