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
10 lines (9 loc) • 383 B
JavaScript
;
module.exports = {
'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']
};