generated from freudenreichan/info2Praktikum-NeuronalesNetz
clear matrix func wip
This commit is contained in:
1 parent
f76e68773c
commit
e2dbb0952f
1 file changed
+4
@@ -11,7 +11,11 @@ Matrix createMatrix(unsigned int rows, unsigned int cols)
|
||||
|
||||
void clearMatrix(Matrix *matrix)
|
||||
{
|
||||
free(matrix->data);
|
||||
|
||||
matrix->rows = 0;
|
||||
matrix->cols = 0;
|
||||
matrix->data = NULL;
|
||||
}
|
||||
|
||||
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
|
||||
Reference in new issue
Block a user