class gpr::linalg::CholeskyPanels

Overview

Lower Cholesky columns stored in panels, without the unused upper blocks. More…

#include <gpr/linalg/CholeskyPanels.h>
 
class CholeskyPanels {
public:
    // structs
 
    struct Panel;
 
    // fields
 
    static Eigen::Index panel_columns = 64;
    static Eigen::Index row_block = 512;
 
    // construction
 
    CholeskyPanels();
    CholeskyPanels(Eigen::Index order, Eigen::Index width = panel_columns);
 
    // methods
 
    Eigen::MatrixXd toLower() const;
    Eigen::Index panelCount() const;
    Eigen::Map<Eigen::MatrixXd> panel(Eigen::Index index);
    Eigen::Map<const Eigen::MatrixXd> panel(Eigen::Index index) const;
    Eigen::Index rows() const;
    Eigen::Index storedElements() const;
    bool hasSharedStorage() const;
 
    template <typename Derived>
    void forwardSolveInPlace(Eigen::MatrixBase<Derived>& right) const;
 
    template <typename Derived>
    void solveInPlace(Eigen::MatrixBase<Derived>& right) const;
 
    static CholeskyPanels fromLower(const Eigen::MatrixXd& lower);
};

Detailed Documentation

Lower Cholesky columns stored in panels, without the unused upper blocks. Solves use dense triangular diagonal blocks and matrix products below them.

Fields

static Eigen::Index row_block = 512

Rows per independent block of the trailing products. Block edges lie on multiples of this count of the factor’s row index, so the products do not depend on the thread count.

Methods

Eigen::MatrixXd toLower() const

The dense lower factor, zero above the diagonal. O(n^2) storage, so for conditioning estimates and tests, not for solves.

bool hasSharedStorage() const

Immutable factor storage shared by MPI ranks on the same host.