| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
This:
* Fixes some broken references
* Cleans up some use of Python 2 aliases:
* Switches references to `np.string_` to describe `np.bytes_` instead
* Switches references to `np.unicode_` to describe `np.str_` instead
|
| |
|
|
|
| |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|
|
| |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| |
|
| |
|
| |
|
|\
| |
| | |
DOC: Add the entry for ``NPY_FEATURE_VERSION``
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* ENH: add function to get broadcast shape from a given set of shapes.
Add new function numpy.broadcast_shape which takes tuples
for the shapes to be broadcast against each other.
Return the broadcasted shape as a tuple.
See #17217
* Perform array allocations of size 0 for provided shape tuples
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Test for int as input shape
Also update docstring to include both ints and tuples of ints as input
* Remove unnecessary array_function_dispatch
* Add missing set_module
* Add release notes. Add versionadded to docstring.
Also fix up docstring details.
* follow convention for trailing comma
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* Change name to broadcast_shapes. Also add test case, and type hint.
* follow convention
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Update docstring
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Add reference to numpy docs on broadcasting to docstring
Also move versionadded
* Fix spelling
Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
* Add broadcast_shapes to reference docs and add See Also sections
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
|
| | |
|
|/ |
|
|\
| |
| | |
DOC: Remove directives for some constants
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
DOC: Update top links in landing page
|
| | |
|
| |
| |
| |
| | |
To fix CircleCI fail; missed it in the c6dc9d6 commit.
|
| |
| |
| |
| |
| |
| | |
Same intent as PR #17365 -- point "Installation" links to Hugo, start
page with "What is NumPy", let Hugo page link to
"Troubleshooting ImportError".
|
| |
| |
| | |
`.. c:function::` expects its contents to be a valid C prototype, meaning the return types and arguments are all need types.
|
| | |
|
| | |
|
|\ \
| | |
| | | |
DOC: Display real license on license page
|
| |/
| |
| |
| |
| | |
Changes license.html to include LICENSE.txt, the real license file.
Was showing an out-of-date copy.
|
|/
|
|
|
| |
Add external link to NEP45 in tocs of dev/index
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|
|
| |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|
|
| |
Remove tutorial wording in favor of article, minor wording updates.
|
|
|
|
| |
Corrects titles to all use sentence case, per style guide.
|
|
|
| |
Fix broken links in see also section of some ma functions.
|
|\
| |
| | |
DOC: Fix the entries for members of structures
|
| | |
|
| | |
|
| |
| |
| |
| | |
Unfortunately we can't use `np.` as a module name alias
|
|/ |
|
|\
| |
| | |
DOC: Add some entries for C types and macros
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
|/| |
DOC: Remove the tables of scalar types, and use `..autoclass` to create link targets instead
|
| | |
|
| |
| |
| |
| |
| |
| | |
This remove the tables. since they only had three columns, and using the character code is advised against anyway.
With this change, the individual scalar types as well as their aliases are now valid sphinx python domain targets.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
By default, the `.__name__` of the numeric `np.generic` subclasses is their bitlength name, such as `np.int64`.
This is convenient when working interactively, because it lets users see the size of their array easily; but in docs it is confusing, as the sizes of the integers in the doc build may not match their size on the platform of the user reading them.
Without this change, `..autoclass:: numpy.short` would just display "alias of uint16", which is backwards.
Rather than changing the names globally, or adding a build flag to change the names, this uses `ctypes` to modify the scalar names at startup.
This resembles the approach taken by the `forbiddenfruit` module for patching builtin slots, although that would be overkill here.
The timing of when we perform this patching is important - we can't do it until after `numpy.core._umath_multiarray` has been loaded, but we need to do it before `numpy.core._add_newdocs` generates the name-based docstrings.
Similarly, we can't just disable `numpy.core._add_newdocs` until later, as it populates docstrings in `ndarray` on which `numpy.ma.core` does further processing.
To resolve this, we split out the scalar docstrings in `numpy.core._add_newdocs` into a new module `numpy.core._add_newdocs_scalars` that _is_ safe to disable until later.
|
| |
| |
| |
| |
| |
| | |
Previously, these would all link to `numpy/core/__init__.py`.
Now the scalar type and `ndarray` link to the files where the `PyTypeObject` is defined.
In future, we should do this for all extension types, probably automatically.
|
|\ \
| | |
| | | |
DOC: How-to guide for I/O
|
| | |
| | |
| | |
| | | |
Adds "CC BY 4.0" credit to the Pauli Vertanen example.
|
| | | |
|