Changeset 5177
- Timestamp:
- Sep 29, 2005, 8:59:01 AM (21 years ago)
- Location:
- trunk/psLib/src/mathtypes
- Files:
-
- 2 edited
-
psImage.c (modified) (2 diffs)
-
psVector.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r5173 r5177 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.8 6$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-09-2 8 22:12:10$11 * @version $Revision: 1.87 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-09-29 18:59:01 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 632 632 } 633 633 write(fd,"\n",1); 634 return (true); 635 } 636 637 XXXX: 638 Remove this 639 bool p_psImagePrintOLD (int fd, psImage *a, char *name) 640 { 641 printf("matrix: %s\n", name); 642 for (int j = 0; j < a[0].numRows; j++) { 643 for (int i = 0; i < a[0].numCols; i++) { 644 printf("%f ", p_psImageGetElementF64(a, i, j)); 645 } 646 printf("\n"); 647 } 648 printf("\n"); 649 fflush(stdout); 634 650 return (true); 635 651 } -
trunk/psLib/src/mathtypes/psVector.c
r5137 r5177 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-09-2 6 22:35:53$11 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-09-29 18:59:01 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 603 603 char *name) 604 604 { 605 FILE *f; 606 f = fdopen(fd, "a+"); 607 fprintf (f, "vector: %s\n", name); 608 605 /* 606 XXXX: This is seg faulting. So I'm getting rid of it. 607 FILE *f; 608 f = fdopen(fd, "a+"); 609 fprintf (f, "vector: %s\n", name); 610 611 for (int i = 0; i < a[0].n; i++) { 612 fprintf (f, "%f\n", p_psVectorGetElementF64(a, i)); 613 } 614 fprintf (f, "\n"); 615 // XXXX: temp fix: this should be recoded. 616 // fclose(f); 617 return (true); 618 */ 619 620 printf ("vector: %s\n", name); 609 621 for (int i = 0; i < a[0].n; i++) { 610 fprintf (f,"%f\n", p_psVectorGetElementF64(a, i));611 } 612 fprintf (f,"\n");613 f close(f);622 printf("%f\n", p_psVectorGetElementF64(a, i)); 623 } 624 printf("\n"); 625 fflush(stdout); 614 626 return (true); 615 627 }
Note:
See TracChangeset
for help on using the changeset viewer.
