home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / elem-c.zip / M_DUMP.C < prev    next >
C/C++ Source or Header  |  1985-05-18  |  4KB  |  19 lines

  1. static char *sccsid = "@(#)m_dump.c    4/6/82 (U of Maryland, FLB)";
  2.  
  3. #include "mat.h"
  4.  
  5. struct matrix *
  6. m_dump(mat)
  7. register struct matrix *mat;
  8. {
  9. register int row, col;
  10.  
  11. printf("%d X %d\n", mat->m_rows, mat->m_cols);
  12.  
  13. for (row = 0; row < mat->m_rows; row++) {
  14.     for (col = 0; col < mat->m_cols; col++)
  15.         printf("%f, ", m_v(mat, row, col));
  16.     putchar('\n');
  17.     }
  18. }