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