dot.js 538 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.dotDocs = void 0;
  6. var dotDocs = {
  7. name: 'dot',
  8. category: 'Matrix',
  9. syntax: ['dot(A, B)', 'A * B'],
  10. description: 'Calculate the dot product of two vectors. ' + 'The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] ' + 'is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn',
  11. examples: ['dot([2, 4, 1], [2, 2, 3])', '[2, 4, 1] * [2, 2, 3]'],
  12. seealso: ['multiply', 'cross']
  13. };
  14. exports.dotDocs = dotDocs;