2015-03-23 16:03:14 -05:00
|
|
|
/*
|
|
|
|
PURPOSE: (Matrix print)
|
|
|
|
ASSUMPTIONS AND LIMITATIONS: ((Square Matrix))
|
|
|
|
PROGRAMMERS: (((Les Quiocho) (NASA/JSC) (Jan 1993) (v1.0) (Init Release))) */
|
2015-02-26 09:02:31 -06:00
|
|
|
|
|
|
|
#include <stdio.h>
|
2015-06-01 10:28:29 -05:00
|
|
|
#include "trick/trick_math.h"
|
2015-02-26 09:02:31 -06:00
|
|
|
|
|
|
|
void mat_print(double **mat, /* In: Matrix to be printed */
|
|
|
|
int n)
|
|
|
|
{ /* In: Array size */
|
|
|
|
int i, j;
|
|
|
|
|
|
|
|
for (i = 0; i < n; i++) {
|
|
|
|
for (j = 0; j < n; j++) {
|
|
|
|
fprintf(stderr, " %16.12f ", mat[i][j]);
|
|
|
|
}
|
|
|
|
fprintf(stderr, "\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|