fixed matrix errors

This commit is contained in:
Tobias Grampp 2025-11-20 16:28:10 +01:00
parent 3adc90e98c
commit 963eb3b3a4
2 changed files with 13 additions and 10 deletions

View File

@ -74,7 +74,6 @@ return MatrixErgebnis;
Matrix multiply(const Matrix matrix1, const Matrix matrix2)
{
Matrix result;
result.rows = matrix1.rows;
result.cols = matrix2.cols;

View File

@ -7,7 +7,11 @@ typedef float MatrixType;
// TODO Matrixtyp definieren
typedef struct Matrix Matrix;
typedef struct Matrix{
unsigned int rows;
unsigned int cols;
MatrixType* buffer;
}Matrix;