Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
f30ca33b
Commit
f30ca33b
authored
4 months ago
by
Richard Angersbach
Browse files
Options
Downloads
Patches
Plain Diff
Fix inheritance of special math function enum classes
parent
71aaf722
No related branches found
No related tags found
1 merge request
!438
Reduction Support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pystencils/backend/functions.py
+3
-3
3 additions, 3 deletions
src/pystencils/backend/functions.py
with
3 additions
and
3 deletions
src/pystencils/backend/functions.py
+
3
−
3
View file @
f30ca33b
...
...
@@ -94,7 +94,7 @@ class MathFunctions(Enum):
self
.
num_args
=
num_args
class
NumericLimitsFunctions
(
MathFunctions
):
class
NumericLimitsFunctions
(
Enum
):
"""
Numerical limits functions supported by the backend.
Each platform has to materialize these functions to a concrete implementation.
...
...
@@ -109,12 +109,12 @@ class PsMathFunction(PsFunction):
__match_args__
=
(
"
func
"
,)
def
__init__
(
self
,
func
:
MathFunctions
)
->
None
:
def
__init__
(
self
,
func
:
MathFunctions
|
NumericLimitsFunctions
)
->
None
:
super
().
__init__
(
func
.
function_name
,
func
.
num_args
)
self
.
_func
=
func
@property
def
func
(
self
)
->
MathFunctions
:
def
func
(
self
)
->
MathFunctions
|
NumericLimitsFunctions
:
return
self
.
_func
def
__str__
(
self
)
->
str
:
...
...
This diff is collapsed.
Click to expand it.
Frederik Hennig
@da15siwa
mentioned in commit
4e688b86
·
2 weeks ago
mentioned in commit
4e688b86
mentioned in commit 4e688b867339c90a6fba3ad12c383d1e59211ed9
Toggle commit list
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