-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add support for cross product #5365
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
Changes from all commits
Commits
Show all changes
120 commits
Select commit
Hold shift + click to select a range
1490c16
Add support for cross
Illviljan 03db734
Update test_computation.py
Illviljan c824e36
Update computation.py
Illviljan 7ce39c7
Update computation.py
Illviljan 916e661
Update test_computation.py
Illviljan 654ad60
Update test_computation.py
Illviljan a6ac578
Update test_computation.py
Illviljan e0c1fac
add more tests
Illviljan 7aebae7
Update xarray/core/computation.py
Illviljan b85e236
Merge branch 'master' into Illviljan-cross
Illviljan 2b54a42
Merge branch 'Illviljan-cross' of https://github.com/Illviljan/xarray…
Illviljan be7b2c2
spatial_dim to dim
Illviljan 4448006
Update computation.py
Illviljan af8b09c
use pad instead of concat
Illviljan a135e05
copy paste np.cross intro
Illviljan 6f17b9b
Get last dim for each array, which is more inline with np.cross
Illviljan 1fadb5f
examples in docs
Illviljan 57239a4
Update computation.py
Illviljan 265ef82
more doc examples
Illviljan dd60562
single dim required, tranpose after apply_ufunc
Illviljan a20cb86
add dims to tests
Illviljan 7ce9315
Update computation.py
Illviljan d5a0ea8
reduce code
Illviljan ef94fa4
support xr.Variable
Illviljan 1a85147
Update computation.py
Illviljan 2ce3dbe
Update computation.py
Illviljan 53c84c2
reduce code
Illviljan dded720
docstring explanations
Illviljan 7058166
Use same terms
Illviljan cb57a55
docstring formatting
Illviljan e69ca81
reduce code
Illviljan 4b2fc72
add tests for dask
Illviljan afe572d
simplify check, align used variables
Illviljan e137350
trim down tests
Illviljan 1a26324
Update computation.py
Illviljan 531a98b
simplify code
Illviljan 2146406
Add type hints
Illviljan 0940472
less type hints
Illviljan a7cc565
Update computation.py
Illviljan 1d1f205
undo type hints
Illviljan 9af7091
Update computation.py
Illviljan 14decb3
Add support for datasets
Illviljan 6f73c32
determine dtype with np.result_type
Illviljan 72330ce
test datasets, daskify the inputs not the results
Illviljan bce2f3e
rechunk padded values, handle 1 sized datasets
Illviljan 1636d25
expand only unique dims, squeeze out dims in tests
Illviljan b5b97a0
rechunk along the dim
Illviljan f77780f
Merge branch 'master' into Illviljan-cross
Illviljan 02364ca
Attempt typing again
Illviljan e842c75
Merge branch 'master' into Illviljan-cross
Illviljan ed44400
Update __init__.py
Illviljan 4fe9737
Update computation.py
Illviljan ec05780
Update computation.py
Illviljan 36c5956
test fixing type in to_stacked_array
Illviljan cbf289c
test fixing to_stacked_array
Illviljan 4cfd5be
small is large
Illviljan 658a59f
Update computation.py
Illviljan ab5ae20
Update xarray/core/computation.py
Illviljan d65ca41
obfuscate variable_dim some
Illviljan 20eef03
Update computation.py
Illviljan 274af32
undo to_stacked_array changes
Illviljan f352303
test sample_dims typing
Illviljan 0a773cb
to_stacked_array fixes
Illviljan d8da29f
add reindex_like check
Illviljan 54a76c1
Update computation.py
Illviljan 0a2dc2e
Update computation.py
Illviljan b3592f3
Update computation.py
Illviljan 06772da
test forcing int type in chunk()
Illviljan cfd11f7
Update computation.py
Illviljan 8451a9e
Merge branch 'master' into Illviljan-cross
Illviljan 90553ed
test collection in to_stacked_array
Illviljan 6eed96e
Update computation.py
Illviljan d3648e5
Update computation.py
Illviljan c639aa3
Update computation.py
Illviljan 4c636f5
Update computation.py
Illviljan 3bea936
Update computation.py
Illviljan 4fc7fcb
Merge branch 'master' into Illviljan-cross
Illviljan 19e8f93
Merge branch 'master' into Illviljan-cross
Illviljan f71a6f1
Merge branch 'main' into Illviljan-cross
Illviljan d4070ab
Merge branch 'main' into Illviljan-cross
Illviljan 12da913
whats new and api.rst
Illviljan ea062e6
Update whats-new.rst
Illviljan ebd89e6
Merge branch 'main' into Illviljan-cross
Illviljan 3c7122b
Merge branch 'main' into Illviljan-cross
Illviljan 9af1198
Merge branch 'main' into Illviljan-cross
Illviljan 27262e6
Merge branch 'main' into Illviljan-cross
Illviljan cc91e7c
Merge branch 'main' into Illviljan-cross
Illviljan 629df59
Output as dataset if any input is a dataset
Illviljan 972c7dc
Simplify the if terms instead of using pass.
Illviljan 3c4ace0
Merge branch 'main' into Illviljan-cross
Illviljan 49967d4
Update computation.py
Illviljan 6ab7d19
Remove support for datasets
Illviljan 20a6cb6
Update computation.py
Illviljan ba3fa9c
Add some typing to test.
Illviljan 8b192f2
doctest fix
Illviljan a27965c
lint
Illviljan 5ec65d2
Merge branch 'main' into Illviljan-cross
Illviljan b058084
Update xarray/core/computation.py
Illviljan f007ed5
Update xarray/core/computation.py
Illviljan e88ae9d
Update xarray/core/computation.py
Illviljan 9aaee2b
Update computation.py
Illviljan 5d6ecba
Update computation.py
Illviljan 71fc9c1
Update computation.py
Illviljan a98b2e3
Update computation.py
Illviljan c95817b
Update computation.py
Illviljan 408eb39
Can't narrow types with old type
Illviljan 316b935
dim now keyword only
Illviljan 3b5b030
use all_dims in transpose
Illviljan f9c5404
Merge branch 'main' into Illviljan-cross
Illviljan 34b300d
if in transpose indeed needed
Illviljan cf13bf9
Update xarray/core/computation.py
Illviljan f2167a6
Update xarray/core/computation.py
Illviljan 570a806
Update xarray/core/computation.py
Illviljan 6f57ed6
Update computation.py
Illviljan 52a986b
Update computation.py
Illviljan fa78e74
add todo comments
Illviljan f2d98b6
Merge branch 'main' into Illviljan-cross
Illviljan 7449cd7
Merge branch 'main' into Illviljan-cross
Illviljan 70d2a4b
Update whats-new.rst
Illviljan e6020e3
Merge branch 'main' into Illviljan-cross
Illviljan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ Top-level functions | |
ones_like | ||
cov | ||
corr | ||
cross | ||
dot | ||
polyval | ||
map_blocks | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.