diff liboctave/array/fCMatrix.cc @ 21266:e69eaee28737

make better use of templates for Schur decomposition * liboctave/numeric/schur.h, liboctave/numeric/schur.cc: New files generated from SCHUR.h, SCHUR.cc, CmplxSCHUR.h, CmplxSCHUR.cc, dbleSCHUR.h, dbleSCHUR.cc, fCmplxSCHUR.h, fCmplxSCHUR.cc, floatSCHUR.h, and floatSCHUR.cc and making them templates. * liboctave/numeric/module.mk: Update. * libinterp/corefcn/schur.cc, sqrtm.cc, CMatrix.cc, dMatrix.cc, fCMatrix.cc, fMatrix.cc, mx-defs.h, mx-ext.h: Use new template classes and header file.
author John W. Eaton <jwe@octave.org>
date Mon, 15 Feb 2016 20:06:12 -0500
parents f7121e111991
children 3c8a3d35661a
line wrap: on
line diff
--- a/liboctave/array/fCMatrix.cc	Thu Jan 14 19:59:52 2016 +1100
+++ b/liboctave/array/fCMatrix.cc	Mon Feb 15 20:06:12 2016 -0500
@@ -46,7 +46,7 @@
 #include "fCColVector.h"
 #include "fCRowVector.h"
 #include "fCmplxCHOL.h"
-#include "fCmplxSCHUR.h"
+#include "schur.h"
 #include "fCmplxSVD.h"
 #include "functor.h"
 #include "lo-error.h"
@@ -3501,8 +3501,8 @@
 
   // Compute Schur decompositions
 
-  FloatComplexSCHUR as (a, "U");
-  FloatComplexSCHUR bs (b, "U");
+  schur<FloatComplexMatrix> as (a, "U");
+  schur<FloatComplexMatrix> bs (b, "U");
 
   // Transform c to new coordinates.