.. index:: pair: namespace; gpr::vecchia .. _doxid-namespacegpr_1_1vecchia: namespace gpr::vecchia ====================== .. toctree:: :hidden: struct_gpr_vecchia_VecchiaResult.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace vecchia { // structs struct :ref:`VecchiaResult`; // global functions Eigen::MatrixXd :ref:`jointBlock`(const Eigen::VectorXd& a, const Eigen::VectorXd& b, double lengthscale); std::vector> :ref:`nearestPredecessors`(const Eigen::MatrixXd& points, int max_neighbours); :ref:`VecchiaResult` :ref:`evaluate`(const Eigen::MatrixXd& points, const Eigen::VectorXd& y, double lengthscale, double noise, int max_neighbours); :ref:`VecchiaResult` :ref:`evaluateExact`(const Eigen::MatrixXd& points, const Eigen::VectorXd& y, double lengthscale, double noise); } // namespace vecchia .. _details-namespacegpr_1_1vecchia: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; jointBlock .. _doxid-namespacegpr_1_1vecchia_1a08cca669bd8d5c1a8ab633f9933049b1: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd jointBlock(const Eigen::VectorXd& a, const Eigen::VectorXd& b, double lengthscale) The joint value/gradient kernel block between two points, (1+d) x (1+d). .. index:: pair: function; nearestPredecessors .. _doxid-namespacegpr_1_1vecchia_1a23cb6ffb21f378d9420c73c53017fcf1: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector> nearestPredecessors(const Eigen::MatrixXd& points, int max_neighbours) Neighbour sets over POINTS (not rows): entry i lists the predecessors of point i, nearest first, at most ``max_neighbours`` of them. .. index:: pair: function; evaluate .. _doxid-namespacegpr_1_1vecchia_1a11c41cec13bf2d2a52ede389593c100f: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`VecchiaResult` evaluate(const Eigen::MatrixXd& points, const Eigen::VectorXd& y, double lengthscale, double noise, int max_neighbours) Evaluate the Vecchia log-likelihood pieces for a gradient-enhanced SE-ARD GP. ``points`` is n x d. ``:ref:`y ``` is the stacked observation vector of length n(d+1) laid out point-major: for point i, one value followed by its d gradient components. ``noise`` is added to the diagonal. With ``max_neighbours``>= n-1 this is exact. .. index:: pair: function; evaluateExact .. _doxid-namespacegpr_1_1vecchia_1a48e22adda0312c3a622a3925514d127c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`VecchiaResult` evaluateExact(const Eigen::MatrixXd& points, const Eigen::VectorXd& y, double lengthscale, double noise) The exact joint quantities, for comparison. Builds the full n(d+1) matrix, so it exists to validate ``:ref:`evaluate ```, not to be used beside it.