Add a [NumPy-like `reshape`](https://numpy.org/doc/stable/reference/generated/numpy.reshape.html) method for converting matrix -> matrix, matrix -> vector, vector -> matrix.