| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
int colappend(), m_extract(), m_replace(), csum(), diag(); |
| 8 |
int identity(), inverse(), issymmetric(), leontief(); |
| 9 |
int m_abs(), m_exp(), m_putf(), m_read(), m_log(), m_log10(), m_int(); |
| 10 |
int m_put(), m_recip(), m_sqrt(), modify(), psa(), rowappend(); |
| 11 |
int rsum(), quit(), unity(); |
| 12 |
int m_emult(); |
| 13 |
|
| 14 |
double determinant(), element(), m_max(), m_min(), norm(), trace(); |
| 15 |
|
| 16 |
static struct |
| 17 |
{ |
| 18 |
char *name; |
| 19 |
double (*func)(); |
| 20 |
} d_funcs[] = {"det", determinant, "el", element, "max", m_max, "min", |
| 21 |
m_min, "norm", norm, "tr", trace, "\0", 0}; |
| 22 |
|
| 23 |
static struct |
| 24 |
{ |
| 25 |
char *name; |
| 26 |
int (*func)(); |
| 27 |
} m_funcs[] = {"abs", m_abs, "ac", colappend, "ar", rowappend, |
| 28 |
"csum", csum, "diag", diag, "em", m_emult, |
| 29 |
"exp", m_exp, "id", identity, "int", m_int, |
| 30 |
"inv", inverse, "isym", issymmetric, "linv", leontief, |
| 31 |
"log", m_log, "log10", m_log10, "mod", modify, |
| 32 |
"psa", psa, "put", m_put, "putf", m_putf, |
| 33 |
"quit", quit, "read", m_read, "recip", m_recip, |
| 34 |
"rsum", rsum, "sqrt", m_sqrt, "uv", unity, |
| 35 |
"xm", m_extract, "rm", m_replace, "\0", 0}; |