simple-squiggle

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

reshape.js (491B)


      1 "use strict";
      2 
      3 Object.defineProperty(exports, "__esModule", {
      4   value: true
      5 });
      6 exports.reshapeDocs = void 0;
      7 var reshapeDocs = {
      8   name: 'reshape',
      9   category: 'Matrix',
     10   syntax: ['reshape(x, sizes)'],
     11   description: 'Reshape a multi dimensional array to fit the specified dimensions.',
     12   examples: ['reshape([1, 2, 3, 4, 5, 6], [2, 3])', 'reshape([[1, 2], [3, 4]], [1, 4])', 'reshape([[1, 2], [3, 4]], [4])'],
     13   seealso: ['size', 'squeeze', 'resize']
     14 };
     15 exports.reshapeDocs = reshapeDocs;