src/Maths/Algebra/Matrix.php
public function getSize($which = null)
    {
        if (!empty($which)) {
            return (isset($this->_size[$which]) ? $this->_size[$which] : null);
        } else {
            return $this->_size;
        }
    }
public function getSize($which = null)
    {
        if (!empty($which)) {
            return (isset($this->_size[$which]) ? $this->_size[$which] : null);
        } else {
            return $this->_size;
        }
    }
Get the matrix size

@param   string  $which
@return  int|array