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
10db4284
Verified
Commit
10db4284
authored
Jul 30, 2021
by
Justin Carpentier
Browse files
types: remove indent + add print
parent
6b4379e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/user-type.hpp
View file @
10db4284
...
...
@@ -170,18 +170,19 @@ namespace eigenpy
inline
static
void
dotfunc
(
void
*
ip0_
,
npy_intp
is0
,
void
*
ip1_
,
npy_intp
is1
,
void
*
op
,
npy_intp
n
,
void
*
/*arr*/
)
{
T
res
=
T
(
0
);
char
*
ip0
=
(
char
*
)
ip0_
,
*
ip1
=
(
char
*
)
ip1_
;
npy_intp
i
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
res
+=
*
static_cast
<
T
*>
(
static_cast
<
void
*>
(
ip0
))
*
*
static_cast
<
T
*>
(
static_cast
<
void
*>
(
ip1
));
ip0
+=
is0
;
ip1
+=
is1
;
}
*
static_cast
<
T
*>
(
op
)
=
res
;
// std::cout << "dotfunc" << std::endl;
T
res
(
0
);
char
*
ip0
=
(
char
*
)
ip0_
,
*
ip1
=
(
char
*
)
ip1_
;
npy_intp
i
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
res
+=
*
static_cast
<
T
*>
(
static_cast
<
void
*>
(
ip0
))
*
*
static_cast
<
T
*>
(
static_cast
<
void
*>
(
ip1
));
ip0
+=
is0
;
ip1
+=
is1
;
}
*
static_cast
<
T
*>
(
op
)
=
res
;
}
...
...
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