IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 28, 2005, 4:25:10 PM (21 years ago)
Author:
desonia
Message:

Bug #382 -- added some simple functions for tracing.

Location:
trunk/psLib/src/collections
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psVector.c

    r3740 r3786  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-04-21 21:21:01 $
     11*  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2005-04-29 02:25:09 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    526526    }
    527527}
     528
     529bool 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  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-04-21 21:18:23 $
     13 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-04-29 02:25:09 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1919#ifndef PS_VECTOR_H
    2020#define PS_VECTOR_H
     21
     22#include<stdio.h>
    2123
    2224#include "psType.h"
     
    162164);
    163165
     166/** Print a vector to a stream
     167 *
     168 *  @return psBool          TRUE is successful, otherwise FALSE.
     169 */
     170bool p_psVectorPrint (
     171    FILE *f,                           ///< output stream
     172    psVector *a,                       ///< vector to print
     173    char *name                         ///< name of vector (for title)
     174);
    164175
    165176/// @}
Note: See TracChangeset for help on using the changeset viewer.