The inverse of a Gram matrix, \( K^{-1} \), allowing transparent multiplication with vectors and matrices.
More...
#include <InverseGramMatrix.h>
|
| | InverseGramMatrix (const GramMatrix &gram_matrix) |
| | Construct an inverse Gram matrix from a Gram matrix.
|
| |
| const GramMatrix & | gram_matrix () const |
| | Get read-only access to the underlying Gram matrix of the inverse Gram matrix.
|
| |
| template<class Derived> |
| Matrix | operator* (const MatrixBase< Derived > &A) const |
| | Multiply the inverse of the Gram matrix with another matrix, \( K^{-1}A \).
|
| |
|
|
const GramMatrix & | gram_matrix_ |
| | Gram matrix to use for the inversion.
|
| |
The inverse of a Gram matrix, \( K^{-1} \), allowing transparent multiplication with vectors and matrices.
Note that only right multiplication is supported. The implementation is just a thin wrapper around GramMatrix::inverse_mult. No data is copied, making this class valid only as long as it maintains a valid reference to the Gram matrix.
Vector x;
Gram Matrix obtained from a kernel function.
Definition GramMatrix.h:35
const GramMatrix & gram_matrix() const
Get read-only access to the underlying Gram matrix of the inverse Gram matrix.
Definition InverseGramMatrix.h:40
◆ InverseGramMatrix()
| lucid::InverseGramMatrix::InverseGramMatrix |
( |
const GramMatrix & | gram_matrix | ) |
|
|
inlineexplicit |
Construct an inverse Gram matrix from a Gram matrix.
- Parameters
-
| gram_matrix | Gram matrix to use for the inversion. |
◆ gram_matrix()
| const GramMatrix & lucid::InverseGramMatrix::gram_matrix |
( |
| ) |
const |
|
inlinenodiscard |
Get read-only access to the underlying Gram matrix of the inverse Gram matrix.
- Returns
- underlying Gram matrix of the inverse Gram matrix
◆ operator*()
template<class Derived>
| Matrix lucid::InverseGramMatrix::operator* |
( |
const MatrixBase< Derived > & | A | ) |
const |
Multiply the inverse of the Gram matrix with another matrix, \( K^{-1}A \).
- Parameters
-
| A | matrix to multiply with the inverse of the Gram matrix |
- Returns
- result of the multiplication
The documentation for this class was generated from the following files: