'Get order column/row-major for given numpy ndarray

I have a numpy array that is created by the third party library, namely proj_data object. Now I am trying to debug my code and I would like to get the "order" parameter of proj_data array.

However there is no such attribute that would tell me which order specifier was used when the array was created.

I need to know that, because the array is in turn used to transfer data to GPU and different order probably produces an error. Ideally I would get solution not by code analysis but really by some reflection of the proj_data object.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source