.. index:: pair: namespace; gpr::ski .. _doxid-namespacegpr_1_1ski: namespace gpr::ski ================== .. toctree:: :hidden: struct_gpr_ski_DSkipReport.rst struct_gpr_ski_InterpolationWeights.rst class_gpr_ski_DerivativeSKI.rst class_gpr_ski_UniformGrid.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace ski { // structs struct :ref:`DSkipReport`; struct :ref:`InterpolationWeights`; // classes class :ref:`DerivativeSKI`; class :ref:`UniformGrid`; // global functions double :ref:`cubicConvolutionWeight`(double s); double :target:`cubicConvolutionWeightDerivative`(double s); :ref:`InterpolationWeights` :target:`interpolate`(const :ref:`UniformGrid`& grid, const Eigen::VectorXd& x); Eigen::MatrixXd :ref:`lanczosLowRank`(const Eigen::MatrixXd& A, double tol, Eigen::Index max_rank); :ref:`DSkipReport` :ref:`dskipProduct`(const Eigen::MatrixXd& x, const Eigen::VectorXd& lengthscales, double tol, Eigen::Index max_rank); } // namespace ski .. _details-namespacegpr_1_1ski: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; cubicConvolutionWeight .. _doxid-namespacegpr_1_1ski_1a17b8f17b08044a22b2a616294dd0ba9a: .. ref-code-block:: cpp :class: doxyrest-title-code-block double cubicConvolutionWeight(double s) Keys' cubic convolution weight and its derivative, the interpolation D-SKI differentiates. w has support abs(s) < 2 and reproduces cubics exactly. .. index:: pair: function; lanczosLowRank .. _doxid-namespacegpr_1_1ski_1a9d40cd355708afc36ac903eb064ceec4: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd lanczosLowRank(const Eigen::MatrixXd& A, double tol, Eigen::Index max_rank) Compress a symmetric PSD matrix to the rank capturing ``tol`` of its trace, by Lanczos. Returns the factor Q S^{1/2} with A ~ F F^T. .. index:: pair: function; dskipProduct .. _doxid-namespacegpr_1_1ski_1a5b94c97b6d6151573655c18536396853: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`DSkipReport` dskipProduct(const Eigen::MatrixXd& x, const Eigen::VectorXd& lengthscales, double tol, Eigen::Index max_rank) Run the D-SKIP product over per-dimension SE factors and report whether the rank stayed bounded. ``:ref:`x ``` is n x d; one lengthscale per column.