Skip to content
GitLab
Menu
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
pinocchio
Commits
257ddb54
Commit
257ddb54
authored
Jan 06, 2018
by
jcarpent
Browse files
[Algo] Small improve of computation times in Cholesky algo
parent
dc1dd442
Changes
1
Show whitespace changes
Inline
Side-by-side
src/algorithm/cholesky.hxx
View file @
257ddb54
...
...
@@ -62,9 +62,9 @@ namespace se3
.
cwiseProduct
(
D
.
segment
(
j
+
1
,
NVT
));
D
[
j
]
=
M
(
j
,
j
)
-
U
.
row
(
j
).
segment
(
j
+
1
,
NVT
)
*
DUt
;
const
double
dj_inv
(
1.
/
D
[
j
]);
for
(
int
_i
=
data
.
parents_fromRow
[(
Model
::
Index
)
j
];
_i
>=
0
;
_i
=
data
.
parents_fromRow
[(
Model
::
Index
)
_i
])
U
(
_i
,
j
)
=
(
M
(
_i
,
j
)
-
U
.
row
(
_i
).
segment
(
j
+
1
,
NVT
).
dot
(
DUt
))
/
D
[
j
]
;
U
(
_i
,
j
)
=
(
M
(
_i
,
j
)
-
U
.
row
(
_i
).
segment
(
j
+
1
,
NVT
).
dot
(
DUt
))
*
dj_inv
;
}
return
data
.
U
;
...
...
Write
Preview
Supports
Markdown
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