#include <stdio.h>
#define DIM 3 // dimension of matrix to test
int main()
{
double det;
printf("Let's test some matrix functions....\n\n");
printf("\nzeros Matrix:\n");
printf("\nIdentity Matrix:\n");
printf("\nNew Random Vector b:\n");
printf("\nDiagonal Matrix from b:\n");
printf("\nNew Random Matrix A:\n");
printf("\nDuplicate A into B:\n");
printf("\nMatrix B in sci notation:\n");
printf("\nMatrix B times 2.0:\n");
printf("\nDeterminant of A:");
printf("%8.6lf\n", det);
printf("\nDeterminant of B:");
printf("%8.6lf\n", det);
printf("\nThree ways to multiply:");
printf("\nA*B=C:\n");
printf("\nleft multiply inplace B=A*B\n");
printf("\nright multiply inplace A=A*B\n");
printf("\ntwo ways to add:");
printf("\nA+B=C:\n");
printf("\ninplace: A=A+B:\n");
printf("\ntwo ways to transpose:");
printf("\nC=A':\n");
printf("\ninplace: A=A'\n");
printf("\nrow vector b times A:\n");
printf("\nA times column vector b\n");
printf("\nouter product C=b*y\n");
printf("\nDONE\n");
return 0;
}