Optisch leicht verbessert
This commit is contained in:
parent
18c917193c
commit
5776f52662
15
matrix.c
15
matrix.c
@ -161,17 +161,16 @@ Matrix add(const Matrix matrix1, const Matrix matrix2)
|
|||||||
|
|
||||||
Matrix ergebnisMatrix;
|
Matrix ergebnisMatrix;
|
||||||
|
|
||||||
if(broadcasting == 0)
|
switch (broadcasting)
|
||||||
{
|
{
|
||||||
|
case 0:
|
||||||
|
case 2:
|
||||||
ergebnisMatrix = createMatrix(matrix1.rows, matrix1.cols);
|
ergebnisMatrix = createMatrix(matrix1.rows, matrix1.cols);
|
||||||
}
|
break;
|
||||||
else if(broadcasting == 1)
|
|
||||||
{
|
case 1:
|
||||||
ergebnisMatrix = createMatrix(matrix2.rows, matrix2.cols);
|
ergebnisMatrix = createMatrix(matrix2.rows, matrix2.cols);
|
||||||
}
|
break;
|
||||||
else if(broadcasting == 2)
|
|
||||||
{
|
|
||||||
ergebnisMatrix = createMatrix(matrix1.rows, matrix1.cols);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int row = 0; row < ergebnisMatrix.rows; row++)
|
for(int row = 0; row < ergebnisMatrix.rows; row++)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user