LU decomposition: Difference between revisions

Content added Content deleted
(Updated D entry)
(Updated D entry)
Line 713: Line 713:


/// Creates the pivoting matrix for m.
/// Creates the pivoting matrix for m.
T[][] pivotize(T)(immutable T[][] m) /*pure nothrow*/
T[][] pivotize(T)(immutable T[][] m) /*pure*/ nothrow
in {
in {
assert(m.isSquare);
assert(m.isSquare);
Line 741: Line 741:
/// Decomposes a square matrix A by PA=LU and returns L, U and P.
/// Decomposes a square matrix A by PA=LU and returns L, U and P.
Tuple!(T[][],"L", T[][],"U", const T[][],"P")
Tuple!(T[][],"L", T[][],"U", const T[][],"P")
lu(T)(immutable T[][] A) /*pure nothrow*/
lu(T)(immutable T[][] A) /*pure*/ nothrow
in {
in {
assert(A.isSquare);
assert(A.isSquare);