#include <stdio.h>
#define DIM 3
int main()
{
printf("Let's test some linear algebra functions....\n\n");
printf("\nNew Random Matrix A:\n");
printf("\nAinverse:\n");
printf("\nA times A_inverse:\n");
printf("\ninvert A again inplace\n");
printf("\nLUP decomposition of A\n");
printf("L:\n");
printf("U:\n");
printf("P:\n");
printf("\nQR Decomposition of A\n");
printf("Q:\n");
printf("R:\n");
printf("\nGaussian Elimination solution x to the equation Ax=b:\n");
printf("equivalent to A\\b in MATLAB\n");
printf("\nQR solution x to the equation Ax=b:\n");
printf("equivalent to A\\b in MATLAB\n");
printf("\nDONE\n");
return 0;
}