diff --git a/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java b/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java index db6cd0870..cd9ec1bab 100644 --- a/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java +++ b/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java @@ -79,7 +79,7 @@ public class GLSMultipleLinearRegression extends AbstractMultipleLinearRegressio */ protected RealMatrix getOmegaInverse() { if (OmegaInverse == null) { - OmegaInverse = new LUSolver(new LUDecompositionImpl(Omega)).getInverse(); + OmegaInverse = new LUDecompositionImpl(Omega).getSolver().getInverse(); } return OmegaInverse; } @@ -95,7 +95,7 @@ public class GLSMultipleLinearRegression extends AbstractMultipleLinearRegressio RealMatrix OI = getOmegaInverse(); RealMatrix XT = X.transpose(); RealMatrix XTOIX = XT.multiply(OI).multiply(X); - RealMatrix inverse = new LUSolver(new LUDecompositionImpl(XTOIX)).getInverse(); + RealMatrix inverse = new LUDecompositionImpl(XTOIX).getSolver().getInverse(); return inverse.multiply(XT).multiply(OI).multiply(Y); } diff --git a/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java b/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java index 6938173dd..3af000366 100644 --- a/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java +++ b/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java @@ -108,7 +108,7 @@ public class OLSMultipleLinearRegression extends AbstractMultipleLinearRegressio */ protected RealMatrix calculateBetaVariance() { RealMatrix XTX = X.transpose().multiply(X); - return new LUSolver(new LUDecompositionImpl(XTX)).getInverse(); + return new LUDecompositionImpl(XTX).getSolver().getInverse(); }