Loading [MathJax]/extensions/tex2jax.js
PolyFEM
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
y
z
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
b
c
d
e
f
g
h
l
m
n
o
p
q
s
t
v
Enumerations
Related Symbols
a
c
e
g
i
l
o
p
s
Files
File List
File Members
All
_
a
c
d
e
f
g
h
i
j
l
m
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
_
a
c
d
e
f
g
i
l
m
q
s
t
v
w
x
y
z
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
RBFInterpolation.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <Eigen/Dense>
4
5
#include <functional>
6
#include <string>
7
8
#ifdef POLYFEM_OPENCL
9
#include <rbf_interpolate.hpp>
10
#endif
11
12
namespace
polyfem
13
{
14
namespace
utils
15
{
16
class
RBFInterpolation
17
{
18
public
:
19
RBFInterpolation
() {}
20
RBFInterpolation
(
const
Eigen::MatrixXd &fun,
const
Eigen::MatrixXd &pts,
const
std::function<
double
(
double
)> &rbf);
21
void
init
(
const
Eigen::MatrixXd &fun,
const
Eigen::MatrixXd &pts,
const
std::function<
double
(
double
)> &rbf);
22
23
RBFInterpolation
(
const
Eigen::MatrixXd &fun,
const
Eigen::MatrixXd &pts,
const
std::string &rbf,
const
double
eps);
24
void
init
(
const
Eigen::MatrixXd &fun,
const
Eigen::MatrixXd &pts,
const
std::string &rbf,
const
double
eps);
25
26
Eigen::MatrixXd
interpolate
(
const
Eigen::MatrixXd &pts)
const
;
27
28
private
:
29
#ifdef POLYFEM_OPENCL
30
int
verbose_ = 0;
31
const
std::string rbfcl_ =
"GA"
;
32
bool
opt_ =
false
;
33
bool
unit_cube_ =
false
;
34
int
num_threads_ = -1;
35
36
std::vector<rbf_pum::RBFData> data_;
37
#else
38
Eigen::MatrixXd
centers_
;
39
Eigen::MatrixXd
weights_
;
40
41
std::function<double(
double
)>
rbf_
;
42
#endif
43
};
16
class
RBFInterpolation
{
…
};
44
}
// namespace utils
45
}
// namespace polyfem
polyfem::utils::RBFInterpolation
Definition
RBFInterpolation.hpp:17
polyfem::utils::RBFInterpolation::RBFInterpolation
RBFInterpolation()
Definition
RBFInterpolation.hpp:19
polyfem::utils::RBFInterpolation::init
void init(const Eigen::MatrixXd &fun, const Eigen::MatrixXd &pts, const std::function< double(double)> &rbf)
Definition
RBFInterpolation.cpp:94
polyfem::utils::RBFInterpolation::interpolate
Eigen::MatrixXd interpolate(const Eigen::MatrixXd &pts) const
Definition
RBFInterpolation.cpp:127
polyfem::utils::RBFInterpolation::centers_
Eigen::MatrixXd centers_
Definition
RBFInterpolation.hpp:38
polyfem::utils::RBFInterpolation::rbf_
std::function< double(double)> rbf_
Definition
RBFInterpolation.hpp:41
polyfem::utils::RBFInterpolation::weights_
Eigen::MatrixXd weights_
Definition
RBFInterpolation.hpp:39
polyfem
Definition
AMIPSEnergy.cpp:6
src
polyfem
utils
RBFInterpolation.hpp
Generated by
1.9.8