aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/LU
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-06-09 14:01:06 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-06-09 14:01:06 +0200
commite242ac9345e728d8e347bb0d48497891e3891276 (patch)
treeb6d2941fc5b0a4434407d7f60297532cd92905c7 /Eigen/src/LU
parent201bd253ad5df543d10396bdde3a56d8ebd3400e (diff)
fix LDLT, now it really only uses a given triangular part!
Diffstat (limited to 'Eigen/src/LU')
-rw-r--r--Eigen/src/LU/PartialPivLU.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Eigen/src/LU/PartialPivLU.h b/Eigen/src/LU/PartialPivLU.h
index a9172289c..7e7516a5c 100644
--- a/Eigen/src/LU/PartialPivLU.h
+++ b/Eigen/src/LU/PartialPivLU.h
@@ -339,9 +339,9 @@ struct ei_partial_lu_impl
Index tsize = size - k - bs; // trailing size
// partition the matrix:
- // A00 | A01 | A02
- // lu = A10 | A11 | A12
- // A20 | A21 | A22
+ // A00 | A01 | A02
+ // lu = A_0 | A_1 | A_2 = A10 | A11 | A12
+ // A20 | A21 | A22
BlockType A_0(lu,0,0,rows,k);
BlockType A_2(lu,0,k+bs,rows,tsize);
BlockType A11(lu,k,k,bs,bs);
@@ -350,8 +350,8 @@ struct ei_partial_lu_impl
BlockType A22(lu,k+bs,k+bs,trows,tsize);
Index nb_transpositions_in_panel;
- // recursively calls the blocked LU algorithm with a very small
- // blocking size:
+ // recursively call the blocked LU algorithm on [A11^T A21^T]^T
+ // with a very small blocking size:
if(!blocked_lu(trows+bs, bs, &lu.coeffRef(k,k), luStride,
row_transpositions+k, nb_transpositions_in_panel, 16))
{
@@ -364,7 +364,7 @@ struct ei_partial_lu_impl
}
nb_transpositions += nb_transpositions_in_panel;
- // update permutations and apply them to A10
+ // update permutations and apply them to A_0
for(Index i=k; i<k+bs; ++i)
{
Index piv = (row_transpositions[i] += k);