mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
17 lines
390 B
JavaScript
17 lines
390 B
JavaScript
module.exports = {
|
|
'name': 'reshape',
|
|
'category': 'Matrix',
|
|
'syntax': [
|
|
'reshape(x, sizes)'
|
|
],
|
|
'description': 'Reshape a multi dimensional array to fit the specified dimensions.',
|
|
'examples': [
|
|
'reshape([1, 2, 3, 4, 5, 6], [2, 3])',
|
|
'reshape([[1, 2], [3, 4]], [1, 4])',
|
|
'reshape([[1, 2], [3, 4]], [4])'
|
|
],
|
|
'seealso': [
|
|
'size', 'squeeze', 'resize'
|
|
]
|
|
};
|