mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
8 lines • 363 B
JavaScript
export var resizeDocs = {
name: 'resize',
category: 'Matrix',
syntax: ['resize(x, size)', 'resize(x, size, defaultValue)'],
description: 'Resize a matrix.',
examples: ['resize([1,2,3,4,5], [3])', 'resize([1,2,3], [5])', 'resize([1,2,3], [5], -1)', 'resize(2, [2, 3])', 'resize("hello", [8], "!")'],
seealso: ['size', 'subset', 'squeeze', 'reshape']
};