@@ 380-390 (lines=11) @@ | ||
377 | * |
|
378 | * @return Matrix Submatrix |
|
379 | */ |
|
380 | public function getMatrixByRow($i0 = null, $iF = null) |
|
381 | { |
|
382 | if (is_int($i0)) { |
|
383 | if (is_int($iF)) { |
|
384 | return $this->getMatrix($i0, 0, $iF + 1, $this->n); |
|
385 | } |
|
386 | ||
387 | return $this->getMatrix($i0, 0, $i0 + 1, $this->n); |
|
388 | } |
|
389 | ||
390 | throw new CalculationException(self::ARGUMENT_TYPE_EXCEPTION); |
|
391 | } |
|
392 | ||
393 | /** |
|
@@ 403-413 (lines=11) @@ | ||
400 | * |
|
401 | * @return Matrix Submatrix |
|
402 | */ |
|
403 | public function getMatrixByCol($j0 = null, $jF = null) |
|
404 | { |
|
405 | if (is_int($j0)) { |
|
406 | if (is_int($jF)) { |
|
407 | return $this->getMatrix(0, $j0, $this->m, $jF + 1); |
|
408 | } |
|
409 | ||
410 | return $this->getMatrix(0, $j0, $this->m, $j0 + 1); |
|
411 | } |
|
412 | ||
413 | throw new CalculationException(self::ARGUMENT_TYPE_EXCEPTION); |
|
414 | } |
|
415 | ||
416 | /** |