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
Jason Chemin
curves
Commits
d5e30de7
Commit
d5e30de7
authored
Aug 12, 2019
by
JasonChmn
Committed by
Pierre Fernbach
Sep 03, 2019
Browse files
[polynomial] Fix warning
parent
fd9f3b64
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/curves/polynomial.h
View file @
d5e30de7
...
...
@@ -203,8 +203,8 @@ namespace curves
coeff_t
deriv_coeff
(
coeff_t
coeff
)
const
{
coeff_t
coeff_derivated
(
coeff
.
rows
(),
coeff
.
cols
()
-
1
);
for
(
std
::
size_t
i
=
0
;
i
<
coeff_derivated
.
cols
();
i
++
)
{
coeff_derivated
.
col
(
i
)
=
coeff
.
col
(
i
+
1
)
*
(
i
+
1
);
for
(
std
::
size_t
i
=
0
;
i
<
std
::
size_t
(
coeff_derivated
.
cols
()
)
;
i
++
)
{
coeff_derivated
.
col
(
i
)
=
coeff
.
col
(
i
+
1
)
*
(
num_t
)(
i
+
1
);
}
return
coeff_derivated
;
}
...
...
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