generated from freudenreichan/info2Praktikum-NeuronalesNetz
clear Matrix Fix for Test 3
This commit is contained in:
1 parent
0e501b7e4e
commit
a18cdfded1
1 file changed
+2
@@ -30,6 +30,8 @@ void clearMatrix(Matrix *matrix)
|
||||
{
|
||||
free(matrix->buffer); //gibt den heap speicher frei
|
||||
matrix->buffer = NULL; //zeiger auf NULL setzen
|
||||
matrix->rows = 0;
|
||||
matrix->cols = 0;
|
||||
}
|
||||
|
||||
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
|
||||
Reference in new issue
Block a user