public function setDimension($name, array $values)
    {
        if (empty($values)) {
            $values = array(null);
        }

        $this->dimensions[$name] = $values;
    }
public function setDimension($name, array $values)
    {
        if (empty($values)) {
            $values = array(null);
        }

        $this->dimensions[$name] = $values;
    }
public function setDimension ( $ name , array $ values ) { if ( empty ( $ values ) ) { $ values = array ( null ) ; } $ this -> dimensions [ $ name ] = $ values ; }
Set a dimension for this matrix

@param string $name   Name of the dimension
@param array  $values Value for this dimension
Set a dimension for this matrix