simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

trace.js (392B)


      1 export var traceDocs = {
      2   name: 'trace',
      3   category: 'Matrix',
      4   syntax: ['trace(A)'],
      5   description: 'Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.',
      6   examples: ['A = [1, 2, 3; -1, 2, 3; 2, 0, 3]', 'trace(A)'],
      7   seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'transpose', 'zeros']
      8 };