@@ 596-609 (lines=14) @@ | ||
593 | ||
594 | try { |
|
595 | $rowA = 0; |
|
596 | foreach ($matrixData1 as $matrixRow) { |
|
597 | if (!is_array($matrixRow)) { |
|
598 | $matrixRow = [$matrixRow]; |
|
599 | } |
|
600 | $columnA = 0; |
|
601 | foreach ($matrixRow as $matrixCell) { |
|
602 | if ((!is_numeric($matrixCell)) || ($matrixCell === null)) { |
|
603 | return Functions::VALUE(); |
|
604 | } |
|
605 | $matrixAData[$rowA][$columnA] = $matrixCell; |
|
606 | ++$columnA; |
|
607 | } |
|
608 | ++$rowA; |
|
609 | } |
|
610 | $matrixA = new Matrix($matrixAData); |
|
611 | $rowB = 0; |
|
612 | foreach ($matrixData2 as $matrixRow) { |
|
@@ 612-625 (lines=14) @@ | ||
609 | } |
|
610 | $matrixA = new Matrix($matrixAData); |
|
611 | $rowB = 0; |
|
612 | foreach ($matrixData2 as $matrixRow) { |
|
613 | if (!is_array($matrixRow)) { |
|
614 | $matrixRow = [$matrixRow]; |
|
615 | } |
|
616 | $columnB = 0; |
|
617 | foreach ($matrixRow as $matrixCell) { |
|
618 | if ((!is_numeric($matrixCell)) || ($matrixCell === null)) { |
|
619 | return Functions::VALUE(); |
|
620 | } |
|
621 | $matrixBData[$rowB][$columnB] = $matrixCell; |
|
622 | ++$columnB; |
|
623 | } |
|
624 | ++$rowB; |
|
625 | } |
|
626 | $matrixB = new Matrix($matrixBData); |
|
627 | ||
628 | if ($columnA != $rowB) { |