Skip to content

Commit

Permalink
Only change the permutation using rcm if the matrix isn't block
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Aug 31, 2024
1 parent c7af1c2 commit 221c538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/lotri.R
Original file line number Diff line number Diff line change
Expand Up @@ -1058,8 +1058,8 @@ NULL
dimnames(.ret) <- list(env$names, env$names)
dimnames(.retF) <- list(env$names, env$names)
dimnames(.retU) <- list(env$names, env$names)
if (is.logical(env$rcm) && env$rcm && .n >= 1) {
.tmp <- lotriMatInv(.ret)
if (is.logical(env$rcm) && env$rcm && .n >= 1 &&
!lotriIsBlockMat(.ret)) {
.ret <- rcm(.ret)
env$names <- dimnames(.ret)[[1]]
.retF <- .retF[env$names, env$names]
Expand Down

0 comments on commit 221c538

Please sign in to comment.