#include <gpr/linalg/CusolverInverse.h>
Public Member Functions | |
| bool | factorise (const EigenMatrix &K) |
| Kind | kind () const noexcept override |
| Eigen::VectorXd | solve (const Eigen::VectorXd &b) const override |
| Solve K x = b for a single right-hand side. | |
| EigenMatrix | solve_mat (const EigenMatrix &B) const override |
| Solve K X = B for a multi right-hand side. | |
| double | log_det () const override |
| Returns the log determinant of K. | |
| double | trace_inv_times (const EigenMatrix &A) const override |
| Public Member Functions inherited from gpr::linalg::KernelInverse | |
| virtual | ~KernelInverse ()=default |
Additional Inherited Members | |
| Public Types inherited from gpr::linalg::KernelInverse | |
| enum class | Kind { RankLocal , Distributed } |
Definition at line 30 of file CusolverInverse.h.
|
nodiscard |
Factor K = L L^T via the compiled backend's cholesky(). Returns true on success, false if K is not numerically PD (the backend cholesky returned false); the caller decides how to react. Each subsequent op requires a successful factorise or throws std::logic_error.
Definition at line 12 of file CusolverInverse.cpp.
|
inlinenodiscardoverridevirtualnoexcept |
Reports whether the operator parallelises internally (Distributed) or is rank-local (RankLocal). Used by ProbeExecutor to choose the dispatch strategy.
Implements gpr::linalg::KernelInverse.
Definition at line 39 of file CusolverInverse.h.
|
nodiscardoverridevirtual |
Returns the log determinant of K.
Implements gpr::linalg::KernelInverse.
Definition at line 37 of file CusolverInverse.cpp.
|
nodiscardoverridevirtual |
Solve K x = b for a single right-hand side.
Implements gpr::linalg::KernelInverse.
Definition at line 18 of file CusolverInverse.cpp.
|
nodiscardoverridevirtual |
Solve K X = B for a multi right-hand side.
Implements gpr::linalg::KernelInverse.
Definition at line 28 of file CusolverInverse.cpp.
|
nodiscardoverridevirtual |
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.
Implements gpr::linalg::KernelInverse.
Definition at line 47 of file CusolverInverse.cpp.