Changeset 3856
- Timestamp:
- May 5, 2005, 12:32:34 PM (21 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
dataManip/psMinimize.c (modified) (3 diffs)
-
math/psMinimize.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMinimize.c
r3854 r3856 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.11 3$ $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 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 26 26 #include "psMinimize.h" 27 27 #include "psStats.h" 28 #include "psImageIO.h" 28 29 /*****************************************************************************/ 29 30 /* DEFINE STATEMENTS */ … … 558 559 559 560 psF64 p_psImageGetElementF64(psImage *a, int i, int j); 560 561 // XXX EAM these two functions are useful for testing562 // XXX EAM this should move to psImage.c563 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.c579 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 }590 561 591 562 // XXX EAM this is my re-implementation of MinLM -
trunk/psLib/src/math/psMinimize.c
r3854 r3856 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.11 3$ $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 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 26 26 #include "psMinimize.h" 27 27 #include "psStats.h" 28 #include "psImageIO.h" 28 29 /*****************************************************************************/ 29 30 /* DEFINE STATEMENTS */ … … 558 559 559 560 psF64 p_psImageGetElementF64(psImage *a, int i, int j); 560 561 // XXX EAM these two functions are useful for testing562 // XXX EAM this should move to psImage.c563 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.c579 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 }590 561 591 562 // XXX EAM this is my re-implementation of MinLM
Note:
See TracChangeset
for help on using the changeset viewer.
