Loading...
Searching...
No Matches
gpr::capi::testing Namespace Reference

Functions

gpr::GaussianProcessRegression * nativeModel (gpr_model_t model) noexcept
 The native Gaussian process behind model.
int setHssvdBackend (gpr_model_t model, gpr_hssvd_backend_t selection)
 Select the HS-SVD or the dense Cholesky posterior of a trained handle and condition it again on the handle's training data.

Function Documentation

◆ nativeModel()

gpr::GaussianProcessRegression * gpr::capi::testing::nativeModel ( gpr_model_t model)
nodiscardnoexcept

The native Gaussian process behind model.

A test may change reporting options on it, such as the variance convention, before it queries the handle.

Returns
nullptr for a NULL, released or non-GP handle, or one that has not been initialized.

◆ setHssvdBackend()

int gpr::capi::testing::setHssvdBackend ( gpr_model_t model,
gpr_hssvd_backend_t selection )

Select the HS-SVD or the dense Cholesky posterior of a trained handle and condition it again on the handle's training data.

Returns
GPR_SUCCESS, GPR_ERR_NULL_HANDLE for a dead handle, GPR_ERR_NOT_TRAINED before gpr_model_train, or the status of a failed conditioning.