function reshape (array, shape) {
  return NdArray.new(array).reshape(shape);
}
Gives a new shape to an array without changing its data.
@param {(Array|NdArray)} array
@param {Array} shape - The new shape should be compatible with the original shape. If an integer, then the result will be a 1-D array of that length
@returns {NdArray}