.. index:: pair: class; gpr::linalg::KernelInverse .. _doxid-classgpr_1_1linalg_1_1_kernel_inverse: class gpr::linalg::KernelInverse ================================ .. toctree:: :hidden: enum_gpr_linalg_KernelInverse_Kind.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class KernelInverse { public: // enums enum :ref:`Kind`; // construction virtual :target:`~KernelInverse`(); // methods virtual :ref:`Kind` :ref:`kind`() const = 0; virtual Eigen::VectorXd :ref:`solve`(const Eigen::VectorXd& b) const = 0; virtual :ref:`EigenMatrix` :ref:`solve_mat`(const :ref:`EigenMatrix`& B) const = 0; virtual double :ref:`log_det`() const = 0; virtual double :ref:`trace_inv_times`(const :ref:`EigenMatrix`& A) const = 0; }; .. _details-classgpr_1_1linalg_1_1_kernel_inverse: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; kind .. _doxid-classgpr_1_1linalg_1_1_kernel_inverse_1a850fae6d0e79b064e6ce4ca3c97502b1: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Kind` kind() const = 0 Reports whether the operator parallelises internally (Distributed) or is rank-local (RankLocal). Used by :ref:`ProbeExecutor ` to choose the dispatch strategy. .. index:: pair: function; solve .. _doxid-classgpr_1_1linalg_1_1_kernel_inverse_1af79bddc83bc6711a9703dd392a549ed5: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual Eigen::VectorXd solve(const Eigen::VectorXd& b) const = 0 Solve K x = b for a single right-hand side. .. index:: pair: function; solve_mat .. _doxid-classgpr_1_1linalg_1_1_kernel_inverse_1a1b98a15ab8527948f97143fd0f26c7f0: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`EigenMatrix` solve_mat(const :ref:`EigenMatrix`& B) const = 0 Solve K X = B for a multi right-hand side. .. index:: pair: function; log_det .. _doxid-classgpr_1_1linalg_1_1_kernel_inverse_1a2ad3ca657b3786f8b60fc620af6b9bbb: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual double log_det() const = 0 Returns the log determinant of K. .. index:: pair: function; trace_inv_times .. _doxid-classgpr_1_1linalg_1_1_kernel_inverse_1a11ad6e138aaa6c970d9d9daca24e18c0: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual double trace_inv_times(const :ref:`EigenMatrix`& A) const = 0 Returns tr(K^{-1} A). Implementations may exploit structure (e.g. ScaLAPACK's distributed dpotri) rather than materialising K^{-1} A. Symmetry contract: A is treated as a general dense matrix; no symmetry of A is exploited by the base contract. Concrete implementations may relax this contract if their override docstring documents the additional assumption.