gplib
1.0.0
C++ Gaussian Process Library
|
#include "gplib.hpp"
Namespaces | |
gplib | |
Functions | |
mat | gplib::upper_triangular_inverse (const mat &upper_t) |
arma::vec | gplib::get_observed_only (const arma::vec &vec, const std::vector< bool > &observed) |
Takes a vector of real values and a boolean vector telling which dimensions are observed and returns a new vector with the observed dimensions only. More... | |
void | gplib::split_indices (const std::vector< bool > &predicates, std::vector< arma::uword > &true_part, std::vector< arma::uword > &false_part) |
Splits the indices (zero indexed) on the ones where the pradicate is true and the part it is false. More... | |
bool | gplib::all_true (const std::vector< bool > &vec) |
Return true if all the values in the boolean vector are true. More... | |
bool | gplib::check_symmetric (const mat &A) |
mat | gplib::force_symmetric (const mat &A) |
mat | gplib::force_diag (const mat &A) |
bool | gplib::is_close (const mat &A, const mat &B, double eps=1e-4) |
mat | gplib::flatten (vector< vec > &y) |
vector< double > | gplib::flatten (vector< mat > &M) |
vector< mat > | gplib::unflatten (vector< double > &M_params, vector< mat > &M) |
void | gplib::split (const std::vector< double > &theta, std::vector< double > &kernel_params, std::vector< double > &M_params) |
Splits the params contained in 'theta' based on the size of kernel_params and M_params. More... | |