mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
`reshape()` takes an n-d array and a list of sizes for each dimension, and fits the data into the specified shape. If the product of the sizes of the new dimensions does not match that of the old, a DimensionError is thrown.