home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / c / c_tutor / c_1 / m_dump < prev    next >
Encoding:
Text File  |  1992-11-14  |  397 b   |  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. }
  19.