Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
i
m
n
p
r
s
t
u
w
Variables
_
a
b
c
d
e
f
h
i
l
m
n
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
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
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
~
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
i
l
m
n
p
r
s
t
v
z
Functions
_
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
v
z
Macros
_
b
e
n
p
unittest
python
test_user_struct.py
Go to the documentation of this file.
1
import
numpy
as
np
2
from
user_struct
import
MyStruct
3
4
x = np.ones(3)
5
y = np.ones(4)
6
ms = MyStruct(x, y)
7
print
(ms.x)
8
print
(ms.y)
9
10
ms.x[0] = 0.0
11
12
ms.x = x
# ok
13
assert
np.allclose(ms.x, x)
14
15
ms.y[:] = y
16
ms.y = y
# segfault
print
void print(const Eigen::SparseMatrix< Scalar, Options > &mat)
Definition:
sparse_matrix.cpp:50
eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Feb 14 2025 03:16:26