src/Maths/Algebra/Matrix.php
public function seek($index)
    {
        try {
            if ($this->getWalkFlag() & self::WALK_X) {
                return $this->seekX($index);
            } elseif ($this->getWalkFlag() & self::WALK_Y) {
                return $this->seekY($index);
            } else {
                return $this->seekXY($index);
            }
        } catch (InvalidArgumentException $e) {
            throw $e;
        } catch (OutOfRangeException $e) {
            throw $e;
        }
    }
public function seek($index)
    {
        try {
            if ($this->getWalkFlag() & self::WALK_X) {
                return $this->seekX($index);
            } elseif ($this->getWalkFlag() & self::WALK_Y) {
                return $this->seekY($index);
            } else {
                return $this->seekXY($index);
            }
        } catch (InvalidArgumentException $e) {
            throw $e;
        } catch (OutOfRangeException $e) {
            throw $e;
        }
    }
Seek to index according to matrix's flag value

@param   string  $index
@return  $this
@throws  OutOfRangeException if the index is out of range
@throws  InvalidArgumentException if the argument is malformed