#include "libvecmat.h" matrix craftmatEZ(int rows, int cols) { //Recall the rules //typedef struct mat {int rows; int cols ; double **elements;} matrix; matrix new; int i,j; //i rows, j cols. new.rows = rows; new.cols = cols; new.elements = (double**) calloc( (new.rows),sizeof(double*) ); for (i=0;i