function _arrayIsVector(array) {
    if (size(array).length !== 1) {
      throw new Error('One dimensional array expected');
    }
  }
Validate whether an array is one dimensional
Throws an error when this is not the case
@param {Array} array
@private