@@ 370-380 (lines=11) @@ | ||
367 | * |
|
368 | * @return Matrix Submatrix |
|
369 | */ |
|
370 | public function getMatrixByRow($i0 = null, $iF = null) |
|
371 | { |
|
372 | if (is_int($i0)) { |
|
373 | if (is_int($iF)) { |
|
374 | return $this->getMatrix($i0, 0, $iF + 1, $this->n); |
|
375 | } |
|
376 | ||
377 | return $this->getMatrix($i0, 0, $i0 + 1, $this->n); |
|
378 | } |
|
379 | throw new \PhpOffice\PhpSpreadsheet\Calculation\Exception(self::ARGUMENT_TYPE_EXCEPTION); |
|
380 | } |
|
381 | ||
382 | /** |
|
383 | * getMatrixByCol. |
|
@@ 392-402 (lines=11) @@ | ||
389 | * |
|
390 | * @return Matrix Submatrix |
|
391 | */ |
|
392 | public function getMatrixByCol($j0 = null, $jF = null) |
|
393 | { |
|
394 | if (is_int($j0)) { |
|
395 | if (is_int($jF)) { |
|
396 | return $this->getMatrix(0, $j0, $this->m, $jF + 1); |
|
397 | } |
|
398 | ||
399 | return $this->getMatrix(0, $j0, $this->m, $j0 + 1); |
|
400 | } |
|
401 | throw new \PhpOffice\PhpSpreadsheet\Calculation\Exception(self::ARGUMENT_TYPE_EXCEPTION); |
|
402 | } |
|
403 | ||
404 | /** |
|
405 | * transpose. |