Linear Algebra and the C Language/a0en
Install and compile this file in your working directory.
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
int main(void)
{
double **A = i_mR(R3,C3);
clrscrn();
printf("A = ID");
eye_mR(A);
p_mR(A, S1,P0,C6);
printf("A = 0");
m0_mR(A);
p_mR(A, S1,P0,C6);
stop();
f_mR(A);
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Screen output example:
A = ID
+1 +0 +0
+0 +1 +0
+0 +0 +1
A = 0
+0 +0 +0
+0 +0 +0
+0 +0 +0
Press return to continue.