Skip to content

LU Decomposition failure #202

@hrkalona

Description

@hrkalona

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions