Skip to content

Commit f7370be

Browse files
committed
sparse/Accelerate: add doc
1 parent 25343da commit f7370be

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

src/decompositions/accelerate.cpp

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,33 @@ void exposeAccelerate() {
2121
.value("SparseOrderMetis", SparseOrderMetis)
2222
.value("SparseOrderCOLAMD", SparseOrderCOLAMD);
2323

24-
#define EXPOSE_ACCELERATE_DECOMPOSITION(name) \
24+
#define EXPOSE_ACCELERATE_DECOMPOSITION(name, doc) \
2525
AccelerateImplVisitor<name<ColMajorSparseMatrix> >::expose( \
26-
EIGENPY_STRINGIZE(name))
27-
28-
EXPOSE_ACCELERATE_DECOMPOSITION(AccelerateLLT);
29-
EXPOSE_ACCELERATE_DECOMPOSITION(AccelerateLDLT);
30-
EXPOSE_ACCELERATE_DECOMPOSITION(AccelerateLDLTUnpivoted);
31-
EXPOSE_ACCELERATE_DECOMPOSITION(AccelerateLDLTSBK);
32-
EXPOSE_ACCELERATE_DECOMPOSITION(AccelerateLDLTTPP);
33-
EXPOSE_ACCELERATE_DECOMPOSITION(AccelerateQR);
34-
EXPOSE_ACCELERATE_DECOMPOSITION(AccelerateCholeskyAtA);
26+
EIGENPY_STRINGIZE(name), doc)
27+
28+
EXPOSE_ACCELERATE_DECOMPOSITION(
29+
AccelerateLLT,
30+
"A direct Cholesky (LLT) factorization and solver based on Accelerate.");
31+
EXPOSE_ACCELERATE_DECOMPOSITION(AccelerateLDLT,
32+
"The default Cholesky (LDLT) factorization "
33+
"and solver based on Accelerate.");
34+
EXPOSE_ACCELERATE_DECOMPOSITION(
35+
AccelerateLDLTUnpivoted,
36+
"A direct Cholesky-like LDL^T factorization and solver based on "
37+
"Accelerate with only 1x1 pivots and no pivoting.");
38+
EXPOSE_ACCELERATE_DECOMPOSITION(
39+
AccelerateLDLTSBK,
40+
"A direct Cholesky (LDLT) factorization and solver based on Accelerate "
41+
"with Supernode Bunch-Kaufman and static pivoting.");
42+
EXPOSE_ACCELERATE_DECOMPOSITION(
43+
AccelerateLDLTTPP,
44+
"A direct Cholesky (LDLT) factorization and solver based on Accelerate "
45+
"with full threshold partial pivoting.");
46+
EXPOSE_ACCELERATE_DECOMPOSITION(
47+
AccelerateQR, "A QR factorization and solver based on Accelerate.");
48+
EXPOSE_ACCELERATE_DECOMPOSITION(
49+
AccelerateCholeskyAtA,
50+
"A QR factorization and solver based on Accelerate without storing Q "
51+
"(equivalent to A^TA = R^T R).");
3552
}
3653
} // namespace eigenpy

0 commit comments

Comments
 (0)