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
1fe931f0
Unverified
Commit
1fe931f0
authored
May 09, 2022
by
Wilson Jallet
Committed by
GitHub
May 09, 2022
Browse files
numpy-allocator: remove useless variable def
Co-authored-by:
Justin Carpentier
<
justin.carpentier@inria.fr
>
parent
89da3015
Pipeline
#18577
passed with stage
in 19 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/numpy-allocator.hpp
View file @
1fe931f0
...
...
@@ -70,8 +70,7 @@ struct NumpyAllocator<Eigen::Ref<MatType, Options, Stride> > {
if
(
NumpyType
::
sharedMemory
())
{
const
int
Scalar_type_code
=
Register
::
getTypeCode
<
Scalar
>
();
const
npy_int
R
=
(
npy_int
)
mat
.
rows
();
const
bool
reverse_strides
=
MatType
::
IsRowMajor
||
(
R
==
1
);
const
bool
reverse_strides
=
MatType
::
IsRowMajor
||
(
mat
.
rows
()
==
1
);
Eigen
::
DenseIndex
inner_stride
=
reverse_strides
?
mat
.
outerStride
()
:
mat
.
innerStride
(),
outer_stride
=
reverse_strides
?
mat
.
innerStride
()
...
...
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