NArray shape
Shapes define the structure of your NArray.
Any newly created NArray automatically follows the shape of object which was used to create it.
Note: You cannot direclty change the shape of any NArray.
reshape
Using this method of your NArray object you can change its shape.
Shape should always be able to contain the elements in the NArray. For example if you have 4 elements inside your NArray then the new shape should always be something whose product is equal to 4.
You can use NArray.calcNoOfElems() to calculate number of elements that can be present in your new shape.