Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_numerics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_numerics
Commits
71a958cd
Commit
71a958cd
authored
Jun 10, 2017
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding missing files
parent
bf83b484
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
src/interpolation/mp4_kernel.hpp
src/interpolation/mp4_kernel.hpp
+34
-0
No files found.
src/interpolation/mp4_kernel.hpp
0 → 100644
View file @
71a958cd
/*
* mp4_kernel.hpp
*
* Created on: May 5, 2017
* Author: i-bird
*/
#ifndef OPENFPM_NUMERICS_SRC_INTERPOLATION_MP4_KERNEL_HPP_
#define OPENFPM_NUMERICS_SRC_INTERPOLATION_MP4_KERNEL_HPP_
#include <iostream>
template
<
typename
st
>
class
mp4_kernel
{
public:
static
const
int
np
=
4
;
static
inline
st
value
(
st
x
,
size_t
i
)
{
if
(
i
==
0
)
return
st
(
2.0
)
+
(
st
(
-
4.0
)
+
(
st
(
2.5
)
-
st
(
0.5
)
*-
x
)
*-
x
)
*-
x
;
else
if
(
i
==
1
)
return
st
(
1.0
)
+
(
st
(
-
2.5
)
+
st
(
1.5
)
*-
x
)
*
x
*
x
;
else
if
(
i
==
2
)
return
st
(
1.0
)
+
(
st
(
-
2.5
)
+
st
(
1.5
)
*
x
)
*
x
*
x
;
else
if
(
i
==
3
)
return
st
(
2.0
)
+
(
st
(
-
4.0
)
+
(
st
(
2.5
)
-
st
(
0.5
)
*
x
)
*
x
)
*
x
;
return
0.0
;
}
};
#endif
/* OPENFPM_NUMERICS_SRC_INTERPOLATION_MP4_KERNEL_HPP_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment