packages/cafeteria/app/external/sylvester/scripts/sylvester-0.1.3.js
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;
  }
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;
  }
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 ; }
Returns the scalar product of the vector with the argument Both vectors must have equal dimensionality
Returns the scalar product of the vector with the argument Both vectors must have equal dimensionality