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