#include <gpr/linalg/KernelInverse.h>
Public Types | |
| enum class | Kind { RankLocal , Distributed } |
Public Member Functions | |
| virtual | ~KernelInverse ()=default |
| virtual Kind | kind () const noexcept=0 |
| virtual Eigen::VectorXd | solve (const Eigen::VectorXd &b) const =0 |
| Solve K x = b for a single right-hand side. | |
| virtual EigenMatrix | solve_mat (const EigenMatrix &B) const =0 |
| Solve K X = B for a multi right-hand side. | |
| virtual double | log_det () const =0 |
| Returns the log determinant of K. | |
| virtual double | trace_inv_times (const EigenMatrix &A) const =0 |
Definition at line 42 of file KernelInverse.h.
|
strong |
| Enumerator | |
|---|---|
| RankLocal | |
| Distributed | |
Definition at line 44 of file KernelInverse.h.
|
virtualdefault |
|
nodiscardpure virtualnoexcept |
Reports whether the operator parallelises internally (Distributed) or is rank-local (RankLocal). Used by ProbeExecutor to choose the dispatch strategy.
Implemented in gpr::linalg::CusolverInverse, and gpr::linalg::DenseLLTInverse.
|
nodiscardpure virtual |
Returns the log determinant of K.
Implemented in gpr::linalg::CusolverInverse, and gpr::linalg::DenseLLTInverse.
|
nodiscardpure virtual |
Solve K x = b for a single right-hand side.
Implemented in gpr::linalg::CusolverInverse, and gpr::linalg::DenseLLTInverse.
|
nodiscardpure virtual |
Solve K X = B for a multi right-hand side.
Implemented in gpr::linalg::CusolverInverse, and gpr::linalg::DenseLLTInverse.
|
nodiscardpure virtual |
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.
Implemented in gpr::linalg::CusolverInverse, and gpr::linalg::DenseLLTInverse.