diff liboctave/array/dMatrix.cc @ 21269:3c8a3d35661a

better use of templates for Cholesky factorization * liboctave/numeric/chol.h, liboctave/numeric/chol.cc: New files generated from CmplxCHOL.cc, fCmplxCHOL.cc, floatCHOL.cc, CmplxCHOL.h, dbleCHOL.cc, dbleCHOL.h, fCmplxCHOL.h, and floatCHOL.h and converted to templates. * liboctave/numeric/module.mk: Update. * __qp__.cc, chol.cc, CMatrix.cc, CMatrix.h, dMatrix.cc, dMatrix.h, fCMatrix.cc, fCMatrix.h, fMatrix.cc, fMatrix.h, eigs-base.cc, mx-defs.h, mx-ext.h: Use new classes.
author John W. Eaton <jwe@octave.org>
date Tue, 16 Feb 2016 02:47:29 -0500
parents e69eaee28737
children cbced1c09916
line wrap: on
line diff
--- a/liboctave/array/dMatrix.cc	Tue Feb 16 00:32:29 2016 -0500
+++ b/liboctave/array/dMatrix.cc	Tue Feb 16 02:47:29 2016 -0500
@@ -36,6 +36,7 @@
 #include "byte-swap.h"
 #include "boolMatrix.h"
 #include "chMatrix.h"
+#include "chol.h"
 #include "dMatrix.h"
 #include "dDiagMatrix.h"
 #include "CMatrix.h"
@@ -46,7 +47,6 @@
 #include "DET.h"
 #include "schur.h"
 #include "dbleSVD.h"
-#include "dbleCHOL.h"
 #include "f77-fcn.h"
 #include "functor.h"
 #include "lo-error.h"
@@ -799,7 +799,7 @@
     {
       if (mattype.is_hermitian ())
         {
-          CHOL chol (*this, info, true, calc_cond);
+          chol<Matrix> chol (*this, info, true, calc_cond);
           if (info == 0)
             {
               if (calc_cond)