code: public function setDimension($name, array $values)
      {
          if (empty($values)) {
              $values = array(null);
          }
  
          $this->dimensions[$name] = $values;
      }
docs: Set a dimension for this matrix
  
  @param string $name   Name of the dimension
  @param array  $values Value for this dimension