docs: function(vector) {
      var V = vector.elements || vector;
      var i, product = 0, n = this.elements.length;
      if (n != V.length) { return null; }
      do { product += this.elements[n-1] * V[n-1]; } while (--n);
      return product;
    }