So from a purely numpy perspective, there is no advantage if one of
aforementioned coordinate arrangements is used (eg Nx2, ravelled, 2xN).
___
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-
I tend to work with Nx2 arrays representing coordinate geometry.
I have examined a number of packages and there is no guidelines as to why a
certain arrangement is preferred over the other.
For example: a rectangle, coordinates ordered clockwise with the first and
last the same to ensure closure
StringDType is interesting. I was just looking for confirmation on a few
things I have tried.
1. you can't use the StringDType in structured arrays.
2. you can't save or savetxt arrays with this dtype
For example, something as simple as this in either scenario produces errors
>>> vals = ['a l