reshape.js 387 B

12345678
  1. export var reshapeDocs = {
  2. name: 'reshape',
  3. category: 'Matrix',
  4. syntax: ['reshape(x, sizes)'],
  5. description: 'Reshape a multi dimensional array to fit the specified dimensions.',
  6. examples: ['reshape([1, 2, 3, 4, 5, 6], [2, 3])', 'reshape([[1, 2], [3, 4]], [1, 4])', 'reshape([[1, 2], [3, 4]], [4])', 'reshape([1, 2, 3, 4], [-1, 2])'],
  7. seealso: ['size', 'squeeze', 'resize']
  8. };