Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
i
l
m
n
p
q
r
s
t
u
v
w
x
y
+
Functions
_
a
c
d
e
f
g
i
m
n
p
r
s
t
u
+
Variables
_
a
b
c
d
e
i
l
m
n
p
q
r
s
t
v
w
x
y
+
Classes
Class List
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
v
w
x
y
~
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
~
+
Variables
b
c
d
e
f
i
j
l
m
n
o
p
s
t
v
w
x
y
+
Typedefs
_
a
b
c
d
e
f
i
k
l
m
n
p
q
r
s
t
v
Enumerator
Related Functions
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
e
f
g
i
l
m
n
p
r
s
t
v
z
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
+
Macros
_
b
e
n
p
include
eigenpy
solvers
SparseSolverBase.hpp
Go to the documentation of this file.
1
/*
2
* Copyright 2017, Justin Carpentier, LAAS-CNRS
3
*
4
* This file is part of eigenpy.
5
* eigenpy is free software: you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public License
7
* as published by the Free Software Foundation, either version 3 of
8
* the License, or (at your option) any later version.
9
* eigenpy is distributed in the hope that it will be
10
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU Lesser General Public License for more details. You should
13
* have received a copy of the GNU Lesser General Public License along
14
* with eigenpy. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
#ifndef __eigenpy_sparse_solver_base_hpp__
18
#define __eigenpy_sparse_solver_base_hpp__
19
20
#include "
eigenpy/fwd.hpp
"
21
22
namespace
eigenpy
{
23
24
template
<
typename
SparseSolver>
25
struct
SparseSolverVisitor
26
:
public
bp::def_visitor<SparseSolverVisitor<SparseSolver> > {
27
typedef
Eigen::VectorXd
VectorType
;
28
29
template
<
class
PyClass>
30
void
visit
(PyClass& cl)
const
{
31
cl.def(
"solve"
, &
solve
, bp::arg(
"b"
),
32
"Returns the solution x of Ax = b using the current decomposition "
33
"of A."
);
34
}
35
36
private
:
37
static
VectorType
solve
(SparseSolver&
self
,
const
VectorType& b) {
38
return
self
.solve(b);
39
}
40
};
41
42
}
// namespace eigenpy
43
44
#endif // ifndef __eigenpy_sparse_solver_base_hpp__
eigenpy::SparseSolverVisitor::VectorType
Eigen::VectorXd VectorType
Definition:
SparseSolverBase.hpp:27
fwd.hpp
eigenpy::SparseSolverVisitor::visit
void visit(PyClass &cl) const
Definition:
SparseSolverBase.hpp:30
eigenpy
Definition:
alignment.hpp:14
eigenpy::SparseSolverVisitor
Definition:
SparseSolverBase.hpp:25
eigenpy::SparseSolverVisitor::solve
static VectorType solve(SparseSolver &self, const VectorType &b)
Definition:
SparseSolverBase.hpp:37
eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Jun 2 2023 02:10:26