caterva.NDArray.resize#
- NDArray.resize(newshape)#
Change the shape of the array by growing one or more dimensions.
- Parameters
- newshapetuple or list
The new shape of the array. It should have the same dimensions as self.
Notes
The array values corresponding to the added positions are not initialized. Thus, the user is in charge of initializing them.