diff --git a/docs.html b/docs.html
index a570eed2..82c53540 100644
--- a/docs.html
+++ b/docs.html
@@ -12136,7 +12136,7 @@ See also:
-
-Cholesky decomposition of symmetric/hermitian positive-definite matrix X into triangular matrix R, with an optional permutation matrix/vector P
+Cholesky decomposition of symmetric/hermitian matrix X into triangular matrix R, with an optional permutation vector/matrix P
-
@@ -12148,7 +12148,15 @@ The optional argument layout is either
"upper" or "low
-
-Forms 5 to 7 also produce a permutation matrix/vector P
+Forms 1 to 4 require X to be positive definite
+
+
+-
+Forms 5 to 7 require X to be positive semi-definite
+
+
+-
+Forms 5 to 7 also provide a permutation vector/matrix P with type uvec or umat
-
@@ -12161,9 +12169,9 @@ The decomposition has the following form:
- forms 1 to 4, with layout = "upper": X = R.t() * R
- forms 1 to 4, with layout = "lower": X = R * R.t()
- forms 5 to 7, with layout = "upper" and P_mode = "matrix": X = P * R.t() * R * P.t()
+- forms 5 to 7, with layout = "upper" and P_mode = "vector": X = Y(P,P), where Y = R.t() * R and Y(P,P) is a non-contiguous view of Y
- forms 5 to 7, with layout = "lower" and P_mode = "matrix": X = P * R * R.t() * P.t()
-- forms 5 to 7, with layout = "upper" and P_mode = "vector": X(P,P) = R.t() * R, where X(P,P) is a non-contiguous view of X
-- forms 5 to 7, with layout = "lower" and P_mode = "vector": X(P,P) = R * R.t(), where X(P,P) is a non-contiguous view of X
+- forms 5 to 7, with layout = "lower" and P_mode = "vector": X = Y(P,P), where Y = R * R.t() and Y(P,P) is a non-contiguous view of Y
@@ -12178,11 +12186,19 @@ The decomposition has the following form:
Examples:
-mat X(5, 5, fill::randu);
-mat Y = X.t()*X;
+mat A(5, 5, fill::randu);
+mat B = A.t()*A;
-mat R1 = chol(Y);
-mat R2 = chol(Y, "lower");
+mat R1 = chol(B);
+mat R2 = chol(B, "lower");
+
+
+ mat R;
+uvec P_vec;
+umat P_mat;
+
+chol(R, P_vec, B);
+chol(R, P_mat, B, "lower", "matrix");
@@ -12194,8 +12210,9 @@ See also:
lu()
qr()
.is_sympd()
-Cholesky decomposition in MathWorld
-Cholesky decomposition in Wikipedia
+Cholesky decomposition in MathWorld
+Cholesky decomposition in Wikipedia
+Definite matrix in Wikipedia