Skip to content
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

Bump Legate-Core version #1127

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion cmake/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"git_url" : "https://github.com/nv-legate/legate.core.git",
"git_shallow": false,
"always_download": false,
"git_tag" : "b84e86e9e3518d7102cdf531b5b733dc09c0e8d9"
"git_tag" : "0f509a007f36609d2b0bd536d8e5c54f2391b444"
}
}
}
10 changes: 9 additions & 1 deletion cunumeric/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -6255,6 +6255,7 @@ def diff(
The first difference is given by ``out[i] = a[i+1] - a[i]`` along
the given axis, higher differences are calculated by using `diff`
recursively.

Parameters
----------
a : array_like
Expand All @@ -6271,6 +6272,7 @@ def diff(
arrays with length 1 in the direction of axis and the shape
of the input array in along all other axes. Otherwise the
dimension and shape must match `a` except along axis.

Returns
-------
diff : ndarray
Expand All @@ -6279,17 +6281,21 @@ def diff(
type of the output is the same as the type of the difference
between any two elements of `a`. This is the same as the type of
`a` in most cases.

See Also
--------
numpy.diff

Notes
-----
Type is preserved for boolean arrays, so the result will contain
`False` when consecutive elements are the same and `True` when they
False when consecutive elements are the same and True when they
differ.

For unsigned integer arrays, the results will also be unsigned. This
should not be surprising, as the result is consistent with
calculating the difference directly:

>>> u8_arr = np.array([1, 0], dtype=np.uint8)
>>> np.diff(u8_arr)
array([255], dtype=uint8)
Expand All @@ -6300,8 +6306,10 @@ def diff(
>>> i16_arr = u8_arr.astype(np.int16)
>>> np.diff(i16_arr)
array([-1], dtype=int16)

Examples
--------

>>> x = np.array([1, 2, 4, 7, 0])
>>> np.diff(x)
array([ 1, 2, 3, -7])
Expand Down
1 change: 1 addition & 0 deletions docs/cunumeric/source/api/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Sums, products, differences
.. autosummary::
:toctree: generated/

diff
prod
sum
cumprod
Expand Down
1 change: 1 addition & 0 deletions docs/cunumeric/source/api/statistics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Histograms

bincount
histogram
digitize


Order statistics
Expand Down
Loading