0

Does transposing an F-style array AND changing an F-style array to C-style means the same?

You can see from the code below that changing to c-style and Transposing an f-style produces the same ordered array. If it is so then why the two styles are there in numpy.? https://code.sololearn.com/cX4E8bnH2EVc/?ref=app Or does it related to any type of memory occupation?

22nd May 2020, 8:08 AM
Lerninn
3 Antworten
+ 3
As the docs suggest, there is no impact on memory utilization: https://numpy.org/doc/stable/reference/generated/numpy.reshape.html The implementation was done out of convenience to conform to both styles as they both might have strong legacy data, software or systems.
22nd May 2020, 9:33 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
Kuba Siekierzyński thanks that really helped.
22nd May 2020, 9:41 AM
Lerninn
0
Kuba Siekierzyński i am focusing on speed. Then which would be faster? Transpose or f,c style ordering.
22nd May 2020, 9:44 AM
Lerninn