Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
21273:cbced1c09916 | 21274:bc536eff5eab |
---|---|
21 */ | 21 */ |
22 | 22 |
23 #ifdef HAVE_CONFIG_H | 23 #ifdef HAVE_CONFIG_H |
24 # include <config.h> | 24 # include <config.h> |
25 #endif | 25 #endif |
26 | |
27 #include <iostream> | |
28 | 26 |
29 #include "CMatrix.h" | 27 #include "CMatrix.h" |
30 #include "dMatrix.h" | 28 #include "dMatrix.h" |
31 #include "f77-fcn.h" | 29 #include "f77-fcn.h" |
32 #include "fCMatrix.h" | 30 #include "fCMatrix.h" |
534 } | 532 } |
535 | 533 |
536 return schur<FloatComplexMatrix> (s, u); | 534 return schur<FloatComplexMatrix> (s, u); |
537 } | 535 } |
538 | 536 |
539 template <typename T> | |
540 std::ostream& | |
541 operator << (std::ostream& os, const schur<T>& a) | |
542 { | |
543 os << a.schur_matrix () << "\n"; | |
544 os << a.unitary_matrix () << "\n"; | |
545 | |
546 return os; | |
547 } | |
548 | |
549 // Instantiations we need. | 537 // Instantiations we need. |
550 | 538 |
551 template class schur<ComplexMatrix>; | 539 template class schur<ComplexMatrix>; |
552 | 540 |
553 template class schur<FloatComplexMatrix>; | 541 template class schur<FloatComplexMatrix>; |
554 | 542 |
555 template class schur<FloatMatrix>; | 543 template class schur<FloatMatrix>; |
556 | 544 |
557 template class schur<Matrix>; | 545 template class schur<Matrix>; |
558 | |
559 template <> | |
560 std::ostream& | |
561 operator << (std::ostream& os, const schur<Matrix>& a); | |
562 | |
563 template <> | |
564 std::ostream& | |
565 operator << (std::ostream& os, const schur<ComplexMatrix>& a); | |
566 | |
567 template <> | |
568 std::ostream& | |
569 operator << (std::ostream& os, const schur<FloatMatrix>& a); | |
570 | |
571 template <> | |
572 std::ostream& | |
573 operator << (std::ostream& os, const schur<FloatComplexMatrix>& a); |