Reduced row echelon form: Difference between revisions

Content added Content deleted
(Updated D entry)
Line 946: Line 946:
<lang d>import std.stdio, std.algorithm, std.array, std.conv;
<lang d>import std.stdio, std.algorithm, std.array, std.conv;


void toReducedRowEchelonForm(T)(T[][] M) pure nothrow {
void toReducedRowEchelonForm(T)(T[][] M) pure nothrow @nogc {
if (M.empty)
if (M.empty)
return;
return;
Line 953: Line 953:


size_t lead;
size_t lead;
foreach (r; 0 .. nrows) {
foreach (immutable r; 0 .. nrows) {
if (ncols <= lead)
if (ncols <= lead)
return;
return;