[Numpy-discussion] My Introduction and Getting Started with Numpy.

2019-05-05 Thread Joyce Tirnyuy
Hi All, I am Ngoran Clare-Joyce, an Electrical Engineer from Cameroon. I use Python and Javascript for Software Development. Over the past year, I have gained insight into Machine Learning and Data Science Algorithms. I have used Numpy, Scipy, Pandas, Pytorch, Scikit-Learn libraries. I have reali

[Numpy-discussion] type and kind for custom dtypes

2019-05-05 Thread Alex Samuel
Hi, I'm working on building a number of related custom dtypes, and I'm not sure how to set the type and kind fields in PyArray_Descr. I tried using type='V' and choosing a single unused kind for all my dtypes; this mostly worked, except I found that coercions would sometimes treat values of tw

Re: [Numpy-discussion] type and kind for custom dtypes

2019-05-05 Thread Alex Samuel
> On May 5, 2019, at 10:58, Alex Samuel wrote: > > Through trial and error, I've found that if I choose an unused type code for > each dtype, coercion seems to work as I expect it to (no coercion unless I've > provided a cast). The kind doesn't seem to matter. Apologies, a correction: I mixed

Re: [Numpy-discussion] type and kind for custom dtypes

2019-05-05 Thread Sebastian Berg
Hi Alex, On Sun, 2019-05-05 at 11:03 -0400, Alex Samuel wrote: > > On May 5, 2019, at 10:58, Alex Samuel wrote: > > > > Through trial and error, I've found that if I choose an unused type > > code for each dtype, coercion seems to work as I expect it to (no > > coercion unless I've provided a ca

Re: [Numpy-discussion] type and kind for custom dtypes

2019-05-05 Thread Sebastian Berg
OK, I looked into the code, so here is a small followup. On Sun, 2019-05-05 at 10:58 -0400, Alex Samuel wrote: > Hi, > > I'm working on building a number of related custom dtypes, and I'm > not sure how to set the type and kind fields in PyArray_Descr. I > tried using type='V' and choosing a si