<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/core/src/common, branch main</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>Bug: Fix compilation of halffloat with gcc 13.1</title>
<updated>2023-05-04T09:32:04+00:00</updated>
<author>
<name>Sayed Adel</name>
<email>seiko@imavr.com</email>
</author>
<published>2023-05-04T09:22:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=f168c41412693f3b934b70d458739427b957dfd3'/>
<id>f168c41412693f3b934b70d458739427b957dfd3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #22137 from Micky774/enable_simd</title>
<updated>2023-05-02T21:58:55+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2023-05-02T21:58:55+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=c37a577c9df74e29c97a7bb010de0b37f83870bb'/>
<id>c37a577c9df74e29c97a7bb010de0b37f83870bb</id>
<content type='text'>
ENH allow for specifying CPU features to enable via `NPY_ENABLE_CPU_FEATURES` environment variable</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ENH allow for specifying CPU features to enable via `NPY_ENABLE_CPU_FEATURES` environment variable</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #23298 from seiko2plus/cpp_half_support</title>
<updated>2023-04-25T08:29:39+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastianb@nvidia.com</email>
</author>
<published>2023-04-25T08:29:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=6f3e1f458e04d13bdd56cff5669f9fd96a25fb66'/>
<id>6f3e1f458e04d13bdd56cff5669f9fd96a25fb66</id>
<content type='text'>
ENH: Extend the functionlty of C++ type `np::Half`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ENH: Extend the functionlty of C++ type `np::Half`</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: add NPY_ENABLE_CPU_FEATURES to allow limiting set of enabled features</title>
<updated>2023-04-08T18:27:25+00:00</updated>
<author>
<name>Meekail Zain</name>
<email>34613774+Micky774@users.noreply.github.com</email>
</author>
<published>2023-04-08T18:27:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=76b31b760e8b4c23fa8229987360962f83cca2e3'/>
<id>76b31b760e8b4c23fa8229987360962f83cca2e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Extend the functionlty of C++ type `np::Half`</title>
<updated>2023-04-05T06:59:03+00:00</updated>
<author>
<name>Sayed Adel</name>
<email>seiko@imavr.com</email>
</author>
<published>2023-02-28T07:01:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=ea15a576a17dbadffbe2115dee3f40baca311bdd'/>
<id>ea15a576a17dbadffbe2115dee3f40baca311bdd</id>
<content type='text'>
  - optimize float/double conversions on x86, requires for now
    raising up the baseline features to `f16c` at least
    during the build.
  - optimize float/double conversions on ppc64le, requires for now
    raising up the baseline features to `VSX3` at least
    during the build.
  - Brings `np::Half` to npymath
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  - optimize float/double conversions on x86, requires for now
    raising up the baseline features to `f16c` at least
    during the build.
  - optimize float/double conversions on ppc64le, requires for now
    raising up the baseline features to `VSX3` at least
    during the build.
  - Brings `np::Half` to npymath
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: fix loading and storing big arrays on s390x</title>
<updated>2023-03-30T11:37:58+00:00</updated>
<author>
<name>Aleksei Nikiforov</name>
<email>aleksei.nikiforov@linux.ibm.com</email>
</author>
<published>2023-03-29T15:43:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=626a10439ff67f4bf9bcbd6fc64ee4c4b4b0c489'/>
<id>626a10439ff67f4bf9bcbd6fc64ee4c4b4b0c489</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: move npy_dtype_info definition back to descriptor.h</title>
<updated>2023-03-20T16:00:15+00:00</updated>
<author>
<name>Nathan Goldbaum</name>
<email>nathan.goldbaum@gmail.com</email>
</author>
<published>2023-03-20T16:00:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=a1339de171f484651b792eba04b1355acc2a892f'/>
<id>a1339de171f484651b792eba04b1355acc2a892f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: allow using dtype classes in array creation functions</title>
<updated>2023-03-17T15:52:37+00:00</updated>
<author>
<name>Nathan Goldbaum</name>
<email>nathan.goldbaum@gmail.com</email>
</author>
<published>2023-03-10T15:21:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=a24e785ead6dbd80050cb157326a6a23b279d4e4'/>
<id>a24e785ead6dbd80050cb157326a6a23b279d4e4</id>
<content type='text'>
This enables writing np.array(some_object, dtype=type(np.dtype('i'))). This
is a follow-on from https://github.com/numpy/numpy/pull/23154, see that PR
for more details.

I had to add a new include to `ctors.h` to bring in the definition of the
`npy_dtype_info` struct. Since `ctors.h` is included in many other files inside
numpy, I found that I needed to modify fewer includes across numpy if I moved
the definition of `npy_dtype_info` to `common.h` from `descriptor.h`. The new
includes of `common.h` are needed to support later includes of `ctors.h` in
those files. If anyone has an alternate place to put `npy_dtype_info` that would
cause less churn of includes I'd love to hear about it.

I spent a bunch of time tweaking the reference counts. I'm reasonably confident
this is correct but not 100%, an additional careful pass over the reference
count logic from a reviewer would be very appreciated.

I could have made `_PyArray_FromAny` and `_PyArray_CheckFromAny` take just a
`npy_dtype_info` struct, but I found it made the reference count logic more
complicated, since `PyArray_FromAny` and `PyArray_CheckFromAny` steal the
reference to the descriptor they are passed and I needed to conserve that
behavior. Also both functions support passing in a `NULL` pointer for the
descriptor and I needed to maintain that behavior as well.

The change to `ucsnarrow.h` fixes a preexisting conflict with the prototype
in `ucsnarrow.c` that triggered a compiler error while I was working on this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This enables writing np.array(some_object, dtype=type(np.dtype('i'))). This
is a follow-on from https://github.com/numpy/numpy/pull/23154, see that PR
for more details.

I had to add a new include to `ctors.h` to bring in the definition of the
`npy_dtype_info` struct. Since `ctors.h` is included in many other files inside
numpy, I found that I needed to modify fewer includes across numpy if I moved
the definition of `npy_dtype_info` to `common.h` from `descriptor.h`. The new
includes of `common.h` are needed to support later includes of `ctors.h` in
those files. If anyone has an alternate place to put `npy_dtype_info` that would
cause less churn of includes I'd love to hear about it.

I spent a bunch of time tweaking the reference counts. I'm reasonably confident
this is correct but not 100%, an additional careful pass over the reference
count logic from a reviewer would be very appreciated.

I could have made `_PyArray_FromAny` and `_PyArray_CheckFromAny` take just a
`npy_dtype_info` struct, but I found it made the reference count logic more
complicated, since `PyArray_FromAny` and `PyArray_CheckFromAny` steal the
reference to the descriptor they are passed and I needed to conserve that
behavior. Also both functions support passing in a `NULL` pointer for the
descriptor and I needed to maintain that behavior as well.

The change to `ucsnarrow.h` fixes a preexisting conflict with the prototype
in `ucsnarrow.c` that triggered a compiler error while I was working on this.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #23153 from seiko2plus/removes_old_cpu_dispatcher</title>
<updated>2023-02-23T00:47:35+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2023-02-23T00:47:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=3f142646cb3f368ff8e95330044fa71c096cb631'/>
<id>3f142646cb3f368ff8e95330044fa71c096cb631</id>
<content type='text'>
SIMD: Get rid of attribute-based CPU dispatching</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SIMD: Get rid of attribute-based CPU dispatching</pre>
</div>
</content>
</entry>
<entry>
<title>SIMD: Suppress VSX ambiguous warnings</title>
<updated>2023-02-21T17:15:42+00:00</updated>
<author>
<name>Sayed Adel</name>
<email>seiko@imavr.com</email>
</author>
<published>2023-02-21T17:15:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=4cfe854f638e805ecac70e31f40aacb582d72b8d'/>
<id>4cfe854f638e805ecac70e31f40aacb582d72b8d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
