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

◆ NewtonState()

template<typename ObjFun , typename ThetaGradFun , typename ThetaInitializer >
stan::math::internal::NewtonState::NewtonState ( int  theta_size,
ObjFun &&  obj_fun,
ThetaGradFun &&  theta_grad_f,
ThetaInitializer &&  theta_init 
)
inline

Constructs Newton state with given dimensions and functors.

Template Parameters
ThetaInitializerType of the initial theta provider
Parameters
theta_sizeDimension of the latent space
obj_funObjective function: (a, theta) -> double
theta_grad_fGradient function: theta -> grad
theta_initInitial theta value or provider

Definition at line 381 of file laplace_marginal_density_estimator.hpp.