8000 DOC: Add release notes for complex types changes in 2.x by lysnikolaou · Pull Request #24362 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC: Add release notes for complex types changes in 2.x #24362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address feedback
  • Loading branch information
lysnikolaou committed Aug 9, 2023
commit e0ea447760907048222f70a6eb110a67e9590851
8 changes: 4 additions & 4 deletions doc/source/reference/c-api/coremath.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ the underlying type:
typedef float _Complex npy_cfloat;
typedef long double _Complex npy_clongdouble;

MSVC does not support the `_Complex` type itself, but has added support for the
C99 `complex.h` header by providing its own implementation. Thus, under MSVC,
the equivalent MSVC types will be used:
MSVC does not support the ``_Complex`` type itself, but has added support for
the C99 ``complex.h`` header by providing its own implementation. Thus, under
MSVC, the equivalent MSVC types will be used:

.. code-block:: c

Expand Down Expand Up @@ -260,7 +260,7 @@ part of a complex number:
npy_csetimag(&c, 0.0);
printf("%d + %di\n", npy_creal(c), npy_cimag(c));

.. version-changed:: 2.0.0
.. versionchanged:: 2.0.0

The underlying C types for all of numpy's complex types have been changed to
use C99 complex types. Up until now the following was being used to represent
Expand Down
0