@@ 652-665 (lines=14) @@ | ||
649 | ||
650 | try { |
|
651 | $rowA = 0; |
|
652 | foreach ($matrixData1 as $matrixRow) { |
|
653 | if (!is_array($matrixRow)) { |
|
654 | $matrixRow = [$matrixRow]; |
|
655 | } |
|
656 | $columnA = 0; |
|
657 | foreach ($matrixRow as $matrixCell) { |
|
658 | if ((!is_numeric($matrixCell)) || ($matrixCell === null)) { |
|
659 | return Functions::VALUE(); |
|
660 | } |
|
661 | $matrixAData[$rowA][$columnA] = $matrixCell; |
|
662 | ++$columnA; |
|
663 | } |
|
664 | ++$rowA; |
|
665 | } |
|
666 | $matrixA = new \PhpOffice\PhpSpreadsheet\Shared\JAMA\Matrix($matrixAData); |
|
667 | $rowB = 0; |
|
668 | foreach ($matrixData2 as $matrixRow) { |
|
@@ 668-681 (lines=14) @@ | ||
665 | } |
|
666 | $matrixA = new \PhpOffice\PhpSpreadsheet\Shared\JAMA\Matrix($matrixAData); |
|
667 | $rowB = 0; |
|
668 | foreach ($matrixData2 as $matrixRow) { |
|
669 | if (!is_array($matrixRow)) { |
|
670 | $matrixRow = [$matrixRow]; |
|
671 | } |
|
672 | $columnB = 0; |
|
673 | foreach ($matrixRow as $matrixCell) { |
|
674 | if ((!is_numeric($matrixCell)) || ($matrixCell === null)) { |
|
675 | return Functions::VALUE(); |
|
676 | } |
|
677 | $matrixBData[$rowB][$columnB] = $matrixCell; |
|
678 | ++$columnB; |
|
679 | } |
|
680 | ++$rowB; |
|
681 | } |
|
682 | $matrixB = new \PhpOffice\PhpSpreadsheet\Shared\JAMA\Matrix($matrixBData); |
|
683 | ||
684 | if ($columnA != $rowB) { |