added more testing comments

This commit is contained in:
Jonas Hofmann 2025-11-24 22:45:49 +01:00
parent 93408c1f47
commit 758dc03ab8

View File

@ -47,6 +47,11 @@ void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned
return;
}
// printf("rowIdx %d\n", rowIdx);
// printf("mat.row %d\n", matrix.rows);
// printf("colIdx %d\n", colIdx);
// printf("mat.cols %d\n", matrix.cols);
if(rowIdx >= matrix.rows || colIdx >= matrix.cols)
{
//printf("Ungueltige Indizes beim Setzen!\n");
@ -54,6 +59,7 @@ void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned
}
// printf("%d \n", rowIdx + matrix.cols * colIdx);
matrix.buffer[rowIdx + matrix.cols * colIdx] = value;
// printf("value %f\n", value);
}
MatrixType getMatrixAt(const Matrix matrix, unsigned int rowIdx, unsigned int colIdx)