Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block_bandsolve cannot invert matrix with zero-valued columns in bottom-right block #1

Open
goepp opened this issue Mar 26, 2018 · 1 comment
Assignees

Comments

@goepp
Copy link
Owner

goepp commented Mar 26, 2018

block_bandsolve(mat, vect, FALSE, lim) does not work when D[-(1:lim), -(1:lim)] has a column of zeros.

@goepp
Copy link
Owner Author

goepp commented Mar 26, 2018

Minimal working example:

library(hazreg)
library(limSolve)
library(tidyverse)
set.seed(0)
A <- matrix(rnorm(36), 6, 6)
B <- matrix(rnorm(24), 6, 4)
D <- diag(rnorm(4)) + rbind(cbind(0, diag(rnorm(3))), 0)
D[4, ] <- 0
D[, 4] <- 0
mat <- rbind(cbind(A + t(A), B), cbind(t(B), D + t(D)))
vect <- rnorm(10)
vect[10] <- 0
lim <- 6
block_bandsolve(mat, vect, FALSE, lim)

@goepp goepp self-assigned this Oct 25, 2020
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

No branches or pull requests

1 participant