Added CreateMatrix Function

This commit is contained in:
Tobias Grampp 2025-11-12 12:23:55 +01:00
parent ebc5ff0216
commit 44b77815b3

View File

@ -13,7 +13,10 @@ typedef struct Matrix {
Matrix createMatrix(unsigned int rows, unsigned int cols)
{
Matrix newMatrix;
newMatrix.rows = rows;
newMatrix.cols = cols;
newMatrix.buffer = calloc(rows*cols, sizeof(MatrixType))
}
void clearMatrix(Matrix *matrix)