comparison liboctave/CRowVector.cc @ 3504:5eef8a2294bd

[project @ 2000-02-01 10:06:51 by jwe]
author jwe
date Tue, 01 Feb 2000 10:07:26 +0000
parents d14c483b3c12
children 6ae6f1180e62
comparison
equal deleted inserted replaced
3503:d14c483b3c12 3504:5eef8a2294bd
710 return res; 710 return res;
711 } 711 }
712 712
713 // i/o 713 // i/o
714 714
715 ostream& 715 std::ostream&
716 operator << (ostream& os, const ComplexRowVector& a) 716 operator << (std::ostream& os, const ComplexRowVector& a)
717 { 717 {
718 // int field_width = os.precision () + 7; 718 // int field_width = os.precision () + 7;
719 for (int i = 0; i < a.length (); i++) 719 for (int i = 0; i < a.length (); i++)
720 os << " " /* setw (field_width) */ << a.elem (i); 720 os << " " /* setw (field_width) */ << a.elem (i);
721 return os; 721 return os;
722 } 722 }
723 723
724 istream& 724 std::istream&
725 operator >> (istream& is, ComplexRowVector& a) 725 operator >> (std::istream& is, ComplexRowVector& a)
726 { 726 {
727 int len = a.length(); 727 int len = a.length();
728 728
729 if (len < 1) 729 if (len < 1)
730 is.clear (ios::badbit); 730 is.clear (std::ios::badbit);
731 else 731 else
732 { 732 {
733 Complex tmp; 733 Complex tmp;
734 for (int i = 0; i < len; i++) 734 for (int i = 0; i < len; i++)
735 { 735 {