identity.js 614 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.identityDocs = void 0;
  6. var identityDocs = {
  7. name: 'identity',
  8. category: 'Matrix',
  9. syntax: ['identity(n)', 'identity(m, n)', 'identity([m, n])'],
  10. description: 'Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.',
  11. examples: ['identity(3)', 'identity(3, 5)', 'a = [1, 2, 3; 4, 5, 6]', 'identity(size(a))'],
  12. seealso: ['concat', 'det', 'diag', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'trace', 'transpose', 'zeros']
  13. };
  14. exports.identityDocs = identityDocs;