trace.js 524 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.traceDocs = void 0;
  6. var traceDocs = {
  7. name: 'trace',
  8. category: 'Matrix',
  9. syntax: ['trace(A)'],
  10. description: 'Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.',
  11. examples: ['A = [1, 2, 3; -1, 2, 3; 2, 0, 3]', 'trace(A)'],
  12. seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'transpose', 'zeros']
  13. };
  14. exports.traceDocs = traceDocs;