-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat[next]: extend embedded implementation of
premap()
(#1501)
Extend the implementation of the `premap` field operation (previously named `remap`, conceptually equivalent to a Contravariant Functor's `contramap`) to support more efficient implementations of different use cases depending on the contents of the connectivity field. ### Added - `gt4py.eve`: new typing aliases and minor utilities ### Changed - `gt4py.next.common`: - new typing aliases. - small refactoring of `Domain` to support creation of subdomains via slicing using the `.slice_at` attribute. The actual implementation comes from the now deleted `gt4py.next.embedded.nd_array_field._relative_ranges_to_domain()` function. - refactor `ConnectivityKind` to represent all known use cases - extend `CartesianConnectivity` to support translation and relocations - rename `remap` to `premap` - `gt4py.next.embedded.nd_array_field`: - full refactoring of `premap()` (old `remap`) and add usage documentation - some renamings (`_hypercube()` -> `_hyperslice()`, `_compute_mask_ranges()` -> `_compute_mask_slices()` ### Removed - `gt4py.next.embedded.nd_array_field`: `_relative_ranges_to_domain()` function moved to an `Domain` attribute in `gt4py.next.common` --------- Co-authored-by: Hannes Vogt <[email protected]>
- Loading branch information
Showing
10 changed files
with
791 additions
and
230 deletions.
There are no files selected for viewing
This file contains 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 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 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
Oops, something went wrong.