Compare commits
No commits in common. "5fcf8977951cad0bb3f7a9842965e3f8a266f60f" and "eda98eb343f35f11fc5cd76c5bf767b261e21689" have entirely different histories.
5fcf897795
...
eda98eb343
@ -114,7 +114,6 @@ Matrix add(const Matrix matrix1, const Matrix matrix2)
|
||||
return createMatrix(0, 0);
|
||||
}
|
||||
|
||||
|
||||
for(unsigned int i = 0; i < resRows; ++i)
|
||||
{
|
||||
for(unsigned int j = 0; j < resCols; ++j)
|
||||
@ -125,7 +124,6 @@ Matrix add(const Matrix matrix1, const Matrix matrix2)
|
||||
unsigned int i2 = (matrix2.rows == 1) ? 0 : i;
|
||||
unsigned int j2 = (matrix2.cols == 1) ? 0 : j;
|
||||
|
||||
|
||||
MatrixType val = getMatrixAt(matrix1, i1, j1) + getMatrixAt(matrix2, i2, j2);
|
||||
setMatrixAt(val, &result, i, j);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user