js/dist/cg.js
function vdot(d, u, v) {

			var s = 0;

			for (var i = 0; i < d; ++i) {
				s += u[i] * v[i];
			}return s;
		}
function vdot(d, u, v) {

			var s = 0;

			for (var i = 0; i < d; ++i) {
				s += u[i] * v[i];
			}return s;
		}
/* js/src/dn/vdot.js 
Computes dot product u.v