Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sumpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Andreas Klöckner
sumpy
Commits
7ed95392
Commit
7ed95392
authored
5 years ago
by
Isuru Fernando
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Fix biharmonic kernel expressions"
This reverts commit
7cf3197b
.
parent
0c903968
No related branches found
No related tags found
1 merge request
!120
Biharmonic kernel fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sumpy/kernel.py
+3
-4
3 additions, 4 deletions
sumpy/kernel.py
with
3 additions
and
4 deletions
sumpy/kernel.py
+
3
−
4
View file @
7ed95392
...
...
@@ -447,14 +447,13 @@ class BiharmonicKernel(ExpressionKernel):
init_arg_names
=
(
"
dim
"
,)
def
__init__
(
self
,
dim
=
None
):
# See https://arxiv.org/abs/1202.1811
r
=
pymbolic_real_norm_2
(
make_sym_vector
(
"
d
"
,
dim
))
if
dim
==
2
:
expr
=
r
**
2
*
(
var
(
"
log
"
)(
r
)
-
1
)
scaling
=
-
1
/
(
8
*
var
(
"
pi
"
))
expr
=
r
**
2
*
var
(
"
log
"
)(
r
)
scaling
=
1
/
(
8
*
var
(
"
pi
"
))
elif
dim
==
3
:
expr
=
r
scaling
=
1
/
(
8
*
var
(
"
pi
"
))
scaling
=
1
# FIXME: Unknown
else
:
raise
RuntimeError
(
"
unsupported dimensionality
"
)
...
...
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