Optisch leicht verbessert
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user