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
unittest
python
test_user_struct.py
Go to the documentation of this file.
1
import
numpy
as
np
2
from
user_struct
import
*
3
4
5
x = np.ones(3)
6
y = np.ones(4)
7
ms = MyStruct(x, y)
8
print
(ms.x)
9
print
(ms.y)
10
11
ms.x[0] = 0.0
12
13
ms.x = x
# ok
14
assert
np.allclose(ms.x, x)
15
16
ms.y[:] = y
17
ms.y = y
# segfault
print
void print(const Tensor &tensor)
Definition:
tensor.cpp:35
eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Jun 2 2023 02:10:26