//matrix.h #ifndef _matrix_h_ #define _matrix_h_ typedef double ValType; /* tipo in virgola mobile */ typedef struct { int nrows, ncols; ValType *values; } Matrix; Matrix* MatrixCreate(int nrows, int ncols); void MatrixSetValue(Matrix *mat, int i, int j, ValType value); ValType MatrixGetValue(Matrix *mat, int i, int j); void MatrixPrint(Matrix *mat); void MatrixDestroy(Matrix *mat); #endif