Linear Algebra and the C Language/a0ed
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,C5);
clrscrn();
printf(" A[%d][%d]:",rsize_R(A),csize_R(A));
p_mR(A, S4,P0,C7);
stop();
f_mR(A);
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
The function i_mR(Rn,Cn); generates a matrix of Rn rows and Cn columns. The function f_mR(A); is used to return memory to the operating system.
Screen output example:
A[3][5]:
+0 +0 +0 +0 +0
+0 +0 +0 +0 +0
+0 +0 +0 +0 +0
Press return to continue.