code: function _Vector(dimension, data) {
    if (!dimension || !Number.isInteger(dimension))
      throw new TypeError('Dimension of the array must be an integer.');
  
    var _values;
    if (!data || data === undefined)
      _values = [];
    else if (!util.isNumberArray(data))
      throw new TypeError('Invalid values for vector.');
    else
      _values = data;
  
    if (_values.length < dimension) {
      var zeros = Array(dimension - _values.length).fill(0);
      _values = _values.concat(zeros);
    } else if (_values.length > dimension) {
      _values = _values.slice(0, dimension);
    }
  
    readonly(this, "dimension", dimension);
    readonly(this, "values", _values);
    readonly(this, "magnitude", _magnitudeOf(_values));
  }
docs: @class
  A vector of arbitrary dimension
  
  @param {Number} dimension
  @param {Array} data: one-dimensional array for values