39 typedef double **MATRIX;
41 #define Mathead(a) ((MATHEAD *)((MATHEAD *)(a) - 1))
42 #define MatRow(a) (Mathead(a)->row)
43 #define MatCol(a) (Mathead(a)->col)
51 #define MAT_FNOTOPEN 2
52 #define MAT_FNOTGETMAT 3
68 MATRIX mat_error (
int);
69 MATRIX _mat_creat (
int,
int);
70 MATRIX mat_creat (
int,
int,
int);
71 MATRIX mat_fill (MATRIX,
int);
72 int mat_free (MATRIX);
73 MATRIX mat_copy (MATRIX);
74 MATRIX mat_colcopy1 (MATRIX, MATRIX,
int,
int);
75 int fgetmat (MATRIX, FILE *);
76 MATRIX mat_dump (MATRIX);
77 MATRIX mat_dumpf (MATRIX,
char *);
78 MATRIX mat_fdump (MATRIX, FILE *);
79 MATRIX mat_fdumpf (MATRIX,
char *, FILE *);
81 MATRIX mat_add (MATRIX, MATRIX);
82 MATRIX mat_sub (MATRIX, MATRIX);
83 MATRIX mat_mul (MATRIX, MATRIX);
84 double mat_diagmul (MATRIX);
85 MATRIX mat_tran (MATRIX);
86 MATRIX mat_inv (MATRIX);
87 MATRIX mat_SymToeplz (MATRIX);
89 int mat_lu (MATRIX, MATRIX);
90 MATRIX mat_backsubs1 (MATRIX, MATRIX, MATRIX, MATRIX,
int);
91 MATRIX mat_lsolve (MATRIX, MATRIX);
93 MATRIX mat_submat (MATRIX,
int,
int);
94 double mat_cofact (MATRIX,
int,
int);
95 double mat_det (MATRIX);
96 double mat_minor (MATRIX,
int,
int);
98 MATRIX mat_durbin (MATRIX);
99 MATRIX mat_lsolve_durbin (MATRIX, MATRIX);