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
Guilhem Saurel
soth
Commits
11c6af16
Commit
11c6af16
authored
Dec 06, 2017
by
Joseph Mirabel
Committed by
Joseph Mirabel
Dec 06, 2017
Browse files
Update unit-test COD
parent
cb56f911
Changes
1
Hide whitespace changes
Inline
Side-by-side
unitTesting/COD.hpp
View file @
11c6af16
...
...
@@ -129,7 +129,7 @@ namespace soth
MatrixXd
::
ColsBlockXpr
matrixVr
()
{
return
V
.
leftCols
(
rank
);
}
MatrixXd
::
ColsBlockXpr
matrixUo
()
{
return
U
.
rightCols
(
NR
-
rank
);
}
MatrixXd
::
ColsBlockXpr
matrixVo
()
{
return
V
.
rightCols
(
NC
-
rank
);
}
TriangularView
<
Block
<
MatrixXd
>
,
Lower
>
matrixL
()
{
return
L
.
topRows
(
rank
);
}
TriangularView
<
Block
<
MatrixXd
>
,
Lower
>
matrixL
()
{
return
L
.
topRows
(
rank
)
.
triangularView
<
Lower
>
()
;
}
/* Solve min||Ax-b|| for a matrix A whose rank is given. */
VectorXd
solve
(
const
VectorXd
&
b
,
bool
inY
=
false
)
...
...
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