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