Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre NARVOR
rtac_base
Commits
e701eb91
Commit
e701eb91
authored
Aug 24, 2021
by
Pierre NARVOR
Browse files
[algorithm] Fixed segfault in InterpolatorCubicSpline
parent
d1e5c51f
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/rtac_base/interpolation.h
View file @
e701eb91
...
...
@@ -265,7 +265,7 @@ InterpolatorCubicSpline<T>::InterpolatorCubicSpline(const Vector& x0, const Vect
Vector
beta
=
6.0
*
(
dy
(
seq
(
1
,
last
))
-
dy
(
seq
(
0
,
last
-
1
)));
types
::
Matrix
<
T
>
A
=
(
2.0
*
(
x0
(
seq
(
2
,
last
))
-
x0
(
seq
(
0
,
last
-
2
)))).
asDiagonal
();
for
(
int
i
=
0
;
i
<
this
->
size
()
-
2
;
i
++
)
{
for
(
int
i
=
0
;
i
<
this
->
size
()
-
3
;
i
++
)
{
A
(
i
,
i
+
1
)
=
dx
(
i
+
1
);
A
(
i
+
1
,
i
)
=
dx
(
i
+
1
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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