dpilger26 / NumCpp

C++ implementation of the Python Numpy library
https://dpilger26.github.io/NumCpp
MIT License
3.55k stars 550 forks source link

reshape (3, 4, 2) #175

Closed serhii-vlasiuk closed 1 year ago

serhii-vlasiuk commented 1 year ago

Is it possible to do reshape like this?

Python code: arr = np.reshape(arr, (3, 4, 2)) # 3 means it will have 3 parent list that has a structure of (4, 2)

print(arr) # prints '[ [[ 0 1] [ 2 3] [ 4 5] [ 6 7]] [[ 8 9] [10 11] [12 13] [14 15]] [[16 17] [18 19] [20 21] [22 23]] ]'

dpilger26 commented 1 year ago

No, this is not possible.