Qurak

LDLDecomposition

Available, differs from the .wl reference

Returns the L·D·Lᴴ factorization of a Hermitian (or real symmetric) matrix:

LDLDecomposition[m]
LDLDecomposition[{{4, 2}, {2, 3}}] → {LowerTriangularMatrix[StructuredArray`StructuredData[{2, 2}, {{1, 0}, {1/2, 1}}]], DiagonalMatrix[StructuredArray`StructuredData[{2, 2}, {{4, 2}, 0}]]}LDLDecomposition[{{1, 2}, {2, 1}}] → {LowerTriangularMatrix[StructuredArray`StructuredData[{2, 2}, {{1, 0}, {2, 1}}]], DiagonalMatrix[StructuredArray`StructuredData[{2, 2}, {{1, -3}, 0}]]}LDLDecomposition[{{2, I}, {-I, 2}}] → {LowerTriangularMatrix[StructuredArray`StructuredData[{2, 2}, {{1, 0}, {-1/2*I, 1}}]], DiagonalMatrix[StructuredArray`StructuredData[{2, 2}, {{2, 3/2}, 0}]]}LDLDecomposition[{{4, 2}, {2, 3}}, TargetStructure -> "Dense"] → {{{1, 0}, {1/2, 1}}, {{4, 0}, {0, 2}}}

Topics

Related

All 6300 functions · Use this from an MCP client