| 
            Last change
 on this file since 2397 was             221, checked in by ansari, 27 years ago           | 
        
        
          | 
             
Creation module DPC/Blitz (blitz 0.4) Reza 09/04/99 
 
           | 
        
        
          | 
            File size:
            915 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | /*
 | 
|---|
| 2 |  * $Id: tinyvecio.cc,v 1.1.1.1 1999-04-09 17:59:01 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.2  1998/03/14 00:04:47  tveldhui
 | 
|---|
| 10 |  * 0.2-alpha-05
 | 
|---|
| 11 |  *
 | 
|---|
| 12 |  * Revision 1.1  1997/07/16 14:51:20  tveldhui
 | 
|---|
| 13 |  * Update: Alpha release 0.2 (Arrays)
 | 
|---|
| 14 |  *
 | 
|---|
| 15 |  */
 | 
|---|
| 16 | 
 | 
|---|
| 17 | #ifndef BZ_TINYVECIO_CC
 | 
|---|
| 18 | #define BZ_TINYVECIO_CC
 | 
|---|
| 19 | 
 | 
|---|
| 20 | #ifndef BZ_TINYVEC_H
 | 
|---|
| 21 |  #include <blitz/tinyvec.h>
 | 
|---|
| 22 | #endif
 | 
|---|
| 23 | 
 | 
|---|
| 24 | BZ_NAMESPACE(blitz)
 | 
|---|
| 25 | 
 | 
|---|
| 26 | // NEEDS_WORK
 | 
|---|
| 27 | 
 | 
|---|
| 28 | template<class P_numtype, int N_length>
 | 
|---|
| 29 | ostream& operator<<(ostream& os, const TinyVector<P_numtype, N_length>& x)
 | 
|---|
| 30 | {
 | 
|---|
| 31 |     os << "[ ";
 | 
|---|
| 32 |     for (int i=0; i < N_length; ++i)
 | 
|---|
| 33 |     {
 | 
|---|
| 34 |         os << setw(10) << x[i];
 | 
|---|
| 35 |         if (!((i+1)%7))
 | 
|---|
| 36 |             os << endl << "  ";
 | 
|---|
| 37 |     }
 | 
|---|
| 38 |     os << " ]";
 | 
|---|
| 39 |     return os;
 | 
|---|
| 40 | }
 | 
|---|
| 41 | 
 | 
|---|
| 42 | BZ_NAMESPACE_END
 | 
|---|
| 43 | 
 | 
|---|
| 44 | #endif // BZ_TINYVECIO_CC
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.