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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Bindgen
pystencils
Commits
35af7c14
Commit
35af7c14
authored
4 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Adapted flake8 warnings
parent
3c02d58e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/backends/cbackend.py
+0
-5
0 additions, 5 deletions
pystencils/backends/cbackend.py
with
0 additions
and
5 deletions
pystencils/backends/cbackend.py
+
0
−
5
View file @
35af7c14
...
@@ -6,7 +6,6 @@ import numpy as np
...
@@ -6,7 +6,6 @@ import numpy as np
import
sympy
as
sp
import
sympy
as
sp
from
sympy.core
import
S
from
sympy.core
import
S
from
sympy.logic.boolalg
import
BooleanFalse
,
BooleanTrue
from
sympy.logic.boolalg
import
BooleanFalse
,
BooleanTrue
from
sympy.printing.ccode
import
C89CodePrinter
from
pystencils.astnodes
import
KernelFunction
,
Node
from
pystencils.astnodes
import
KernelFunction
,
Node
from
pystencils.cpu.vectorization
import
vec_all
,
vec_any
from
pystencils.cpu.vectorization
import
vec_all
,
vec_any
...
@@ -330,10 +329,6 @@ class CustomSympyPrinter(CCodePrinter):
...
@@ -330,10 +329,6 @@ class CustomSympyPrinter(CCodePrinter):
def
__init__
(
self
):
def
__init__
(
self
):
super
(
CustomSympyPrinter
,
self
).
__init__
()
super
(
CustomSympyPrinter
,
self
).
__init__
()
self
.
_float_type
=
create_type
(
"
float32
"
)
self
.
_float_type
=
create_type
(
"
float32
"
)
#if 'Min' in self.known_functions:
# del self.known_functions['Min']
# if 'Max' not in self.known_functions:
# self.known_functions.update({'Max': 'Max'})
def
_print_Pow
(
self
,
expr
):
def
_print_Pow
(
self
,
expr
):
"""
Don
'
t use std::pow function, for small integer exponents, write as multiplication
"""
"""
Don
'
t use std::pow function, for small integer exponents, write as multiplication
"""
...
...
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