![]() |
Stan Math Library
5.2.0
Automatic Differentiation
|
|
inline |
Constructs Newton state with a consistent (a_init, theta_init) pair.
When the caller supplies a non-zero theta_init, a_init = Sigma^{-1} * theta_init must be provided to maintain the invariant theta = Sigma * a.
| ObjFun | A callable type for the objective function |
| ThetaGradFun | A callable type for the theta gradient function |
| CovarianceT | A matrix type for the covariance (must support LLT solve) |
| ThetaInitializer | A type for the initial theta (e.g., Eigen vector) |
| theta_size | Dimension of the latent space |
| obj_fun | Objective function: (a, theta) -> double |
| theta_grad_f | Gradient function: theta -> grad |
| covariance | Covariance matrix for the latent variables |
| a_init | Initial a value consistent with theta_init |
| theta_init | Initial theta value |
Definition at line 384 of file laplace_marginal_density_estimator.hpp.