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

LU Decomposition failure #202

Open
hrkalona opened this issue Oct 15, 2024 · 0 comments
Open

LU Decomposition failure #202

hrkalona opened this issue Oct 15, 2024 · 0 comments

Comments

@hrkalona
Copy link

Hello,
I am trying to decompose this matrix

0.5000,0.0000,-0.3333,0.0000,1.0000,0.0000,0.0000,-1.0000
-1.0000,1.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000
0.0000,-1.0000,1.0000,0.0000,0.0000,0.0000,0.0000,0.0000
0.0000,0.0000,0.0000,1.0000,0.0000,-4.0000,0.0000,0.0000
0.0000,0.0000,0.0000,0.0000,1.0000,-1.0000,0.0000,0.0000
0.3333,0.0000,-0.5000,0.0000,0.0000,1.0000,0.0000,-1.0000
0.0000,0.0000,0.0000,0.2000,0.0000,0.0000,1.0000,0.0000
1.0000,0.0000,-1.0000,0.0000,0.0000,0.0000,0.0000,3.0000

But I am getting a failure.
I am using LinearSolverSparse<DMatrixSparseCSC, DMatrixRMaj> solver = LinearSolverFactory_DSCC.lu(FillReducing.NONE);
solver.setA returns false

for reference this matrix can be decomposed:
https://matrixcalc.org/#LU-decomposition%28%7B%7B0%2e5,0,-0%2e3333,0,1,0,0,-1%7D,%7B-1,1,0,0,0,0,0,0%7D,%7B0,-1,1,0,0,0,0,0%7D,%7B0,0,0,1,0,-4,0,0%7D,%7B0,0,0,0,1,-1,0,0%7D,%7B0%2e3333,0,-0%2e5,0,0,1,0,-1%7D,%7B0,0,0,0%2e2,0,0,1,0%7D,%7B1,0,-1,0,0,0,0,3%7D%7D%29

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