generated from freudenreichan/info2Praktikum-NeuronalesNetz
mutiplyMatrix implementierung
This commit is contained in:
1 parent
d31214f974
commit
e8eb227d44
2 files changed
+39
-7
No files matched your search
@@ -123,10 +123,9 @@ void test_multiplyFailsOnWrongInputDimensions(void)
|
||||
Matrix matrix1 = {.rows=2, .cols=3, .buffer=buffer1};
|
||||
Matrix matrix2 = {.rows=2, .cols=3, .buffer=buffer2};
|
||||
|
||||
Matrix result = multiply(matrix1, matrix2);
|
||||
|
||||
Matrix result = multiply(matrix1, matrix2); // was würde passiern wenn der die Matrix fälschlicherweise doch allociert werden würde und jetzt der Speicher nicht mehr freigegeben wird
|
||||
TEST_ASSERT_NULL(result.buffer);
|
||||
TEST_ASSERT_EQUAL_UINT32(0, result.rows);
|
||||
TEST_ASSERT_EQUAL_UINT32(0, result.rows);
|
||||
TEST_ASSERT_EQUAL_UINT32(0, result.cols);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user