Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
6feaa06f
Commit
6feaa06f
authored
Apr 19, 2022
by
Wilson Jallet
🎬
Browse files
unittest: call from C++ puts arange() inside of block
parent
e2ab314e
Pipeline
#18407
passed with stage
in 1 minute and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
unittest/python/test_eigen_ref.py
View file @
6feaa06f
...
...
@@ -52,12 +52,13 @@ def test(mat):
super
().
__init__
()
def
call
(
self
,
mat
):
mat
[:,
:]
=
1.0
n
,
m
=
mat
.
shape
mat
[:,
:]
=
np
.
arange
(
n
*
m
).
reshape
(
n
,
m
)
modify
=
ModifyBlockImpl
()
modify
.
modify
(
2
,
3
)
Jref
=
np
.
zeros
((
10
,
10
))
Jref
[:
2
,
:
3
]
=
1.0
Jref
[:
2
,
:
3
]
=
np
.
arange
(
6
).
reshape
(
2
,
3
)
assert
np
.
array_equal
(
Jref
,
modify
.
J
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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