Changeset 3786 for trunk/psLib/src/collections
- Timestamp:
- Apr 28, 2005, 4:25:10 PM (21 years ago)
- Location:
- trunk/psLib/src/collections
- Files:
-
- 2 edited
-
psVector.c (modified) (2 diffs)
-
psVector.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psVector.c
r3740 r3786 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-04-2 1 21:21:01$11 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-04-29 02:25:09 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 526 526 } 527 527 } 528 529 bool p_psVectorPrint (FILE *f, psVector *a, char *name) 530 { 531 532 fprintf (f, "vector: %s\n", name); 533 534 for (int i = 0; i < a[0].n; i++) { 535 fprintf (f, "%f\n", p_psVectorGetElementF64(a, i)); 536 } 537 fprintf (f, "\n"); 538 return (true); 539 } -
trunk/psLib/src/collections/psVector.h
r3737 r3786 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-04-2 1 21:18:23$13 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-04-29 02:25:09 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 19 19 #ifndef PS_VECTOR_H 20 20 #define PS_VECTOR_H 21 22 #include<stdio.h> 21 23 22 24 #include "psType.h" … … 162 164 ); 163 165 166 /** Print a vector to a stream 167 * 168 * @return psBool TRUE is successful, otherwise FALSE. 169 */ 170 bool p_psVectorPrint ( 171 FILE *f, ///< output stream 172 psVector *a, ///< vector to print 173 char *name ///< name of vector (for title) 174 ); 164 175 165 176 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
