diff liboctave/numeric/schur.cc @ 21274:bc536eff5eab

eliminate ostream operator << from schur classes * liboctave/numeric/schur.h, liboctave/numeric/schur.cc: Delete operator <<.
author John W. Eaton <jwe@octave.org>
date Tue, 16 Feb 2016 14:47:35 -0500
parents e69eaee28737
children 40de9f8f23a6
line wrap: on
line diff
--- a/liboctave/numeric/schur.cc	Tue Feb 16 14:41:06 2016 -0500
+++ b/liboctave/numeric/schur.cc	Tue Feb 16 14:47:35 2016 -0500
@@ -24,8 +24,6 @@
 #  include <config.h>
 #endif
 
-#include <iostream>
-
 #include "CMatrix.h"
 #include "dMatrix.h"
 #include "f77-fcn.h"
@@ -536,16 +534,6 @@
   return schur<FloatComplexMatrix> (s, u);
 }
 
-template <typename T>
-std::ostream&
-operator << (std::ostream& os, const schur<T>& a)
-{
-  os << a.schur_matrix () << "\n";
-  os << a.unitary_matrix () << "\n";
-
-  return os;
-}
-
 // Instantiations we need.
 
 template class schur<ComplexMatrix>;
@@ -555,19 +543,3 @@
 template class schur<FloatMatrix>;
 
 template class schur<Matrix>;
-
-template <>
-std::ostream&
-operator << (std::ostream& os, const schur<Matrix>& a);
-
-template <>
-std::ostream&
-operator << (std::ostream& os, const schur<ComplexMatrix>& a);
-
-template <>
-std::ostream&
-operator << (std::ostream& os, const schur<FloatMatrix>& a);
-
-template <>
-std::ostream&
-operator << (std::ostream& os, const schur<FloatComplexMatrix>& a);