You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm.. I'm not sure if I'm correct, but I believe the issue is that the given array is not contiguous at all.
If I'm not mistaken, for a 1-dimensional array, a C-contiguous array is also an F-contiguous array and vice-versa.
Since the given vector contains data that is not stored at consecutive memory addresses, the data is not contiguous.
At least that's what I'm assuming.
PyGLM should support buffer data that isn't contiguous, which it currently doesn't.
I'll check if my assumptions are correct the next time I have access to a computer.
Hmm.. I'm not sure if I'm correct, but I believe the issue is that the given array is not contiguous at all. If I'm not mistaken, for a 1-dimensional array, a C-contiguous array is also an F-contiguous array and vice-versa.
Ah, you're right. I was inspecting the transposed 2D array, which is F-contiguous but not C-contiguous. A row from that array is indeed neither C-contiguous nor F-contiguous.
If a numpy array is not C_CONTIGUOUS, attempting to construct a vector from it raises a TypeError.
To reproduce:
This is highly confusing, since in the example above,
a[0]
looks perfectly eligible:Finding the root of this issue was... not easy. 😅
The text was updated successfully, but these errors were encountered: