IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3856


Ignore:
Timestamp:
May 5, 2005, 12:32:34 PM (21 years ago)
Author:
gusciora
Message:

Got read of image/vector print routine.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psMinimize.c

    r3854 r3856  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.113 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-05-05 22:21:55 $
     11 *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-05-05 22:32:34 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2626#include "psMinimize.h"
    2727#include "psStats.h"
     28#include "psImageIO.h"
    2829/*****************************************************************************/
    2930/* DEFINE STATEMENTS                                                         */
     
    558559
    559560psF64 p_psImageGetElementF64(psImage *a, int i, int j);
    560 
    561 // XXX EAM these two functions are useful for testing
    562 // XXX EAM this should move to psImage.c
    563 bool p_psImagePrint (FILE *f, psImage *a, char *name)
    564 {
    565 
    566     fprintf (f, "matrix: %s\n", name);
    567 
    568     for (int j = 0; j < a[0].numRows; j++) {
    569         for (int i = 0; i < a[0].numCols; i++) {
    570             fprintf (f, "%f  ", p_psImageGetElementF64(a, i, j));
    571         }
    572         fprintf (f, "\n");
    573     }
    574     fprintf (f, "\n");
    575     return (true);
    576 }
    577 
    578 // XXX EAM this should move to psVector.c
    579 bool p_psVectorPrint (FILE *f, psVector *a, char *name)
    580 {
    581 
    582     fprintf (f, "vector: %s\n", name);
    583 
    584     for (int i = 0; i < a[0].n; i++) {
    585         fprintf (f, "%f\n", p_psVectorGetElementF64(a, i));
    586     }
    587     fprintf (f, "\n");
    588     return (true);
    589 }
    590561
    591562// XXX EAM this is my re-implementation of MinLM
  • trunk/psLib/src/math/psMinimize.c

    r3854 r3856  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.113 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-05-05 22:21:55 $
     11 *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-05-05 22:32:34 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2626#include "psMinimize.h"
    2727#include "psStats.h"
     28#include "psImageIO.h"
    2829/*****************************************************************************/
    2930/* DEFINE STATEMENTS                                                         */
     
    558559
    559560psF64 p_psImageGetElementF64(psImage *a, int i, int j);
    560 
    561 // XXX EAM these two functions are useful for testing
    562 // XXX EAM this should move to psImage.c
    563 bool p_psImagePrint (FILE *f, psImage *a, char *name)
    564 {
    565 
    566     fprintf (f, "matrix: %s\n", name);
    567 
    568     for (int j = 0; j < a[0].numRows; j++) {
    569         for (int i = 0; i < a[0].numCols; i++) {
    570             fprintf (f, "%f  ", p_psImageGetElementF64(a, i, j));
    571         }
    572         fprintf (f, "\n");
    573     }
    574     fprintf (f, "\n");
    575     return (true);
    576 }
    577 
    578 // XXX EAM this should move to psVector.c
    579 bool p_psVectorPrint (FILE *f, psVector *a, char *name)
    580 {
    581 
    582     fprintf (f, "vector: %s\n", name);
    583 
    584     for (int i = 0; i < a[0].n; i++) {
    585         fprintf (f, "%f\n", p_psVectorGetElementF64(a, i));
    586     }
    587     fprintf (f, "\n");
    588     return (true);
    589 }
    590561
    591562// XXX EAM this is my re-implementation of MinLM
Note: See TracChangeset for help on using the changeset viewer.