Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arraycontext
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexandru Fikl
arraycontext
Commits
853f5014
Unverified
Commit
853f5014
authored
3 years ago
by
Alexandru Fikl
Committed by
Alexandru Fikl
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
improve docs
Co-authored-by:
Andreas Klöckner
<
inform@tiker.net
>
parent
7b03174b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arraycontext/container/__init__.py
+1
-1
1 addition, 1 deletion
arraycontext/container/__init__.py
arraycontext/container/traversal.py
+1
-1
1 addition, 1 deletion
arraycontext/container/traversal.py
with
2 additions
and
2 deletions
arraycontext/container/__init__.py
+
1
−
1
View file @
853f5014
...
...
@@ -125,7 +125,7 @@ def serialize_container(ary: ArrayContainer) -> Iterable[Tuple[Any, Any]]:
the control of the container class. However, the order is required to be
deterministic, i.e. two calls to :func:`serialize_container` on
array containers of the same types with the same number of
sub-arrays
should
result in an iterable with the keys in the same
sub-arrays
must
result in an iterable with the keys in the same
order.
If *ary* is mutable, the serialization function is not required to ensure
...
...
This diff is collapsed.
Click to expand it.
arraycontext/container/traversal.py
+
1
−
1
View file @
853f5014
...
...
@@ -554,7 +554,7 @@ def flatten(ary: ArrayOrContainerT, actx: ArrayContext) -> Any:
def
unflatten
(
template
:
ArrayOrContainerT
,
ary
:
Any
,
actx
:
ArrayContext
)
->
ArrayOrContainerT
:
"""
Unflatten an array produced by :func:`flatten` back into an
"""
Unflatten an array
*ary*
produced by :func:`flatten` back into an
:class:`~arraycontext.ArrayContainer`.
The order and sizes of each slice into *ary* are determined by the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment