org.apache.commons.math3.linear.SingularMatrixException

matrix is singular

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via GitHub by harryhoch
    ,
  • via Stack Overflow by user3086819
    ,
  • Stack trace

    • org.apache.commons.math3.linear.SingularMatrixException: matrix is singular at org.apache.commons.math3.linear.LUDecomposition$Solver.solve(LUDecomposition.java:334) at org.apache.commons.math3.linear.LUDecomposition$Solver.getInverse(LUDecomposition.java:387) at edu.cmu.tetrad.util.TetradMatrix.inverse(TetradMatrix.java:362) at edu.cmu.tetrad.util.StatUtils.partialCorrelation(StatUtils.java:1757) at edu.cmu.tetrad.search.IndTestFisherZ.partialCorrelation(IndTestFisherZ.java:239) at edu.cmu.tetrad.search.IndTestFisherZ.isIndependent(IndTestFisherZ.java:184)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.