This commit is contained in:
Nicolas Reckert 2025-11-16 20:44:49 +01:00
parent 339c3e81b1
commit 46601b3020

View File

@ -46,7 +46,7 @@ MatrixType getMatrixAt(const Matrix matrix, unsigned int rowIdx, unsigned int co
return matrix.buffer[rowIdx * matrix.cols + colIdx]; return matrix.buffer[rowIdx * matrix.cols + colIdx];
} }
// Addition (with broadcasting support for bias) // Addition
Matrix add(const Matrix matrix1, const Matrix matrix2) Matrix add(const Matrix matrix1, const Matrix matrix2)
{ {
Matrix result; Matrix result;