#include #include #include "matrix.h" #include // TODO Matrix-Funktionen implementieren ... ok Matrix createMatrix(unsigned int rows, unsigned int cols) { Matrix matrix; if (rows == 0 || cols == 0) { matrix.rows = 0; matrix.cols =0; matrix.data = NULL; return matrix; } matrix.rows = rows; matrix.cols = cols; matrix.data = (MatrixTyype *)malloc(rows * cols * sizeof(MatrixType)); if (matrix.data == NULL) { matrix.rows = 0; matrix.cols = 0; return matrix; } for (int i = 0; i