[Numpy-discussion] Parameterised dtypes
Richard Hattersley
rhattersley at gmail.com
Fri May 24 13:29:25 EDT 2013
On 24 May 2013 15:12, Richard Hattersley <rhattersley at gmail.com> wrote:
> Or is the intended use of parametrisation more like:
> >>> weird = my_stuff.make_dtype([34,33,31,30,30,29,29,30,31,32,34,35])
> >>> a = np.zeros(n, dtype=weird)
>
Or to put it another way .... I have a working `make_dtype` function (which
could easily be extended to do dtype caching), but is that the right way to
go about things?
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130524/a74f181e/attachment.html>
More information about the NumPy-Discussion
mailing list