2
* $Id: vecio.cc 1414 2005-11-01 22:04:59Z cookedm $
4
* Copyright (C) 1997 Todd Veldhuizen <tveldhui@oonumerics.org>
5
* All rights reserved. Please see <blitz/blitz.h> for terms and
14
#include <blitz/vector.h>
19
// This version of operator<< is provided as a temporary measure
20
// only. It will be revised in a future release.
23
template<typename P_numtype>
24
ostream& operator<<(ostream& os, const Vector<P_numtype>& x)
27
for (int i=0; i < x.length(); ++i)
29
os << setw(10) << x[i];
37
template<typename P_expr>
38
ostream& operator<<(ostream& os, _bz_VecExpr<P_expr> expr)
40
Vector<_bz_typename P_expr::T_numtype> result(expr);