changeset 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 cbced1c09916
children 85d8280c64f4
files liboctave/numeric/schur.cc liboctave/numeric/schur.h
diffstat 2 files changed, 0 insertions(+), 33 deletions(-) [+]
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);
--- a/liboctave/numeric/schur.h	Tue Feb 16 14:41:06 2016 -0500
+++ b/liboctave/numeric/schur.h	Tue Feb 16 14:47:35 2016 -0500
@@ -25,7 +25,6 @@
 
 #include "octave-config.h"
 
-#include <iosfwd>
 #include <string>
 
 #include "dMatrix.h"
@@ -98,8 +97,4 @@
 extern schur<RT>
 rsf2csf (const AT& s, const AT& u);
 
-template <typename T>
-extern std::ostream&
-operator << (std::ostream& os, const schur<T>& a);
-
 #endif