.. index:: pair: class; gpr::linalg::BackendContext .. _doxid-classgpr_1_1linalg_1_1_backend_context: class gpr::linalg::BackendContext ================================= .. toctree:: :hidden: Overview ~~~~~~~~ Numerical workspace for one conditioning operation or posterior. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class BackendContext { public: // construction :target:`BackendContext`(); :target:`BackendContext`(std::shared_ptr`> communication); :target:`BackendContext`(const BackendContext&); // methods :ref:`BackendContext`& :target:`operator=`(const :ref:`BackendContext`&); :ref:`MpiContext` :target:`mpi`() const; int :ref:`memorySharingRanks`() const; const :ref:`LocalExecutor`& :target:`local`() const; const std::shared_ptr`>& :target:`environmentGpu`() const; bool :target:`cholesky_rank_update`(:ref:`EigenMatrix`& lower, const Eigen::VectorXd& vector); bool :target:`cholesky`(const :ref:`EigenMatrix`& C, :ref:`EigenMatrix`& L); :ref:`EigenMatrix` :target:`forward_solve_mat`(const :ref:`EigenMatrix`& L, const :ref:`EigenMatrix`& B); :ref:`EigenMatrix` :target:`back_solve_mat`(const :ref:`EigenMatrix`& L, const :ref:`EigenMatrix`& B); :ref:`EigenMatrix` :ref:`solve_covariance_mat`(const :ref:`EigenMatrix`& L, const :ref:`EigenMatrix`& B); Eigen::VectorXd :target:`solve_covariance`(const :ref:`EigenMatrix`& L, const Eigen::VectorXd& b); Eigen::VectorXd :target:`forward_solve_mat_colwise_squared_norm`(const :ref:`EigenMatrix`& L, const :ref:`EigenMatrix`& B); Eigen::VectorXd :target:`bordered_cholesky_diagonal`(const :ref:`EigenMatrix`& L, const :ref:`EigenMatrix`& B, const Eigen::VectorXd& prior); Eigen::VectorXd :target:`forward_solve`(const :ref:`EigenMatrix`& L, const Eigen::VectorXd& b); Eigen::VectorXd :target:`back_solve`(const :ref:`EigenMatrix`& L, const Eigen::VectorXd& b); :ref:`EigenMatrix` :target:`cholesky_inverse`(const :ref:`EigenMatrix`& L); double :target:`trace_product`(const :ref:`EigenMatrix`& A, const :ref:`EigenMatrix`& B); double :target:`log_det_cholesky`(const :ref:`EigenMatrix`& L); }; .. _details-classgpr_1_1linalg_1_1_backend_context: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Numerical workspace for one conditioning operation or posterior. Communication may be shared; factors and their derived storage are owned by this workspace. Collective operations require identical ordering within the selected process group. Independent posteriors use separate workspaces. Methods ------- .. index:: pair: function; memorySharingRanks .. _doxid-classgpr_1_1linalg_1_1_backend_context_1ac137cd69916e95fbb574a580a341daf6: .. ref-code-block:: cpp :class: doxyrest-title-code-block int memorySharingRanks() const Node rank count when known; the whole group gives a conservative memory share without initializing a collective backend. .. index:: pair: function; solve_covariance_mat .. _doxid-classgpr_1_1linalg_1_1_backend_context_1ab38b20c61421712bc5bdc0db56bdcd72: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`EigenMatrix` solve_covariance_mat(const :ref:`EigenMatrix`& L, const :ref:`EigenMatrix`& B) Apply (L L^T)^-1 without exposing its intermediate triangular solve.