Skip to content

Handle rank more carefully in sparse GP solves - #332

Open
peddie wants to merge 1 commit into
masterfrom
full-rank-qr
Open

Handle rank more carefully in sparse GP solves#332
peddie wants to merge 1 commit into
masterfrom
full-rank-qr

Conversation

@peddie

@peddie peddie commented May 31, 2022

Copy link
Copy Markdown
Contributor

Previously we assumed that every solve would be full-rank, which could
lead to invalid / undefined values being used as part of a linear
solve with the R factor of a QR decomposition. This commit

  • switches to the Eigen-recommended way of extracting a valid R
    factor from a QR decomposition

  • adds assertions checking that the sparse GP problem was full-rank

  • adds an assertion that an R factor is of appropriate rank when
    using it to compute covariances

Previously we assumed that every solve would be full-rank, which could
lead to invalid / undefined values being used as part of a linear
solve with the `R` factor of a QR decomposition.  This commit

 - switches to the Eigen-recommended way of extracting a valid `R`
   factor from a QR decomposition

 - adds assertions checking that the sparse GP problem was full-rank

 - adds an assertion that an `R` factor is of appropriate rank when
   using it to compute covariances
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant