Line | |
---|
1 | /*
|
---|
2 | * $Id: tinyvecio.cc,v 1.1.1.1 1999-11-26 16:37:05 ansari Exp $
|
---|
3 | *
|
---|
4 | * Copyright (C) 1997 Todd Veldhuizen <tveldhui@seurat.uwaterloo.ca>
|
---|
5 | * All rights reserved. Please see <blitz/blitz.h> for terms and
|
---|
6 | * conditions of use.
|
---|
7 | *
|
---|
8 | * $Log: not supported by cvs2svn $
|
---|
9 | // Revision 1.1.1.1 1999/04/09 17:59:01 ansari
|
---|
10 | // Creation module DPC/Blitz (blitz 0.4) Reza 09/04/99
|
---|
11 | //
|
---|
12 | * Revision 1.2 1998/03/14 00:04:47 tveldhui
|
---|
13 | * 0.2-alpha-05
|
---|
14 | *
|
---|
15 | * Revision 1.1 1997/07/16 14:51:20 tveldhui
|
---|
16 | * Update: Alpha release 0.2 (Arrays)
|
---|
17 | *
|
---|
18 | */
|
---|
19 |
|
---|
20 | #ifndef BZ_TINYVECIO_CC
|
---|
21 | #define BZ_TINYVECIO_CC
|
---|
22 |
|
---|
23 | #ifndef BZ_TINYVEC_H
|
---|
24 | #include <blitz/tinyvec.h>
|
---|
25 | #endif
|
---|
26 |
|
---|
27 | BZ_NAMESPACE(blitz)
|
---|
28 |
|
---|
29 | // NEEDS_WORK
|
---|
30 |
|
---|
31 | template<class P_numtype, int N_length>
|
---|
32 | ostream& operator<<(ostream& os, const TinyVector<P_numtype, N_length>& x)
|
---|
33 | {
|
---|
34 | os << "[ ";
|
---|
35 | for (int i=0; i < N_length; ++i)
|
---|
36 | {
|
---|
37 | os << setw(10) << x[i];
|
---|
38 | if (!((i+1)%7))
|
---|
39 | os << endl << " ";
|
---|
40 | }
|
---|
41 | os << " ]";
|
---|
42 | return os;
|
---|
43 | }
|
---|
44 |
|
---|
45 | BZ_NAMESPACE_END
|
---|
46 |
|
---|
47 | #endif // BZ_TINYVECIO_CC
|
---|
Note:
See
TracBrowser
for help on using the repository browser.