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
Merge requests
!69
Small fixes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Small fixes
seitz/pystencils:small-fixes
into
master
Overview
0
Commits
3
Pipelines
2
Changes
1
Merged
Stephan Seitz
requested to merge
seitz/pystencils:small-fixes
into
master
5 years ago
Overview
0
Commits
3
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Viewing commit
e303e88f
Prev
Next
Show latest version
1 file
+
8
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
e303e88f
Add TypedSymbol.reversed/canonical
· e303e88f
Stephan Seitz
authored
5 years ago
pystencils/data_types.py
+
8
−
0
Options
@@ -236,6 +236,14 @@ class TypedSymbol(sp.Symbol):
def
__getnewargs__
(
self
):
return
self
.
name
,
self
.
dtype
@property
def
canonical
(
self
):
return
self
@property
def
reversed
(
self
):
return
self
def
create_type
(
specification
):
"""
Creates a subclass of Type according to a string or an object of subclass Type.
Loading