Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loopy
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
Model registry
Operate
Environments
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
Ben Sepanski
loopy
Commits
3defbe27
Commit
3defbe27
authored
7 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Throw error on empty domains in min/max
parent
89ce32df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loopy/kernel/tools.py
+6
-0
6 additions, 0 deletions
loopy/kernel/tools.py
with
6 additions
and
0 deletions
loopy/kernel/tools.py
+
6
−
0
View file @
3defbe27
...
...
@@ -316,10 +316,16 @@ class SetOperationCacheManager:
return
result
def
dim_min
(
self
,
set
,
*
args
):
if
set
.
plain_is_empty
():
raise
LoopyError
(
"
domain
'
%s
'
is empty
"
%
set
)
from
loopy.isl_helpers
import
dim_min_with_elimination
return
self
.
op
(
set
,
"
dim_min
"
,
dim_min_with_elimination
,
args
)
def
dim_max
(
self
,
set
,
*
args
):
if
set
.
plain_is_empty
():
raise
LoopyError
(
"
domain
'
%s
'
is empty
"
%
set
)
from
loopy.isl_helpers
import
dim_max_with_elimination
return
self
.
op
(
set
,
"
dim_max
"
,
dim_max_with_elimination
,
args
)
...
...
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