Gauss-Jordan matrix inversion: Difference between revisions

Content added Content deleted
Line 1,309: Line 1,309:
s = x
s = x
}
}
}
if s == 0 {
panic("Irregular matrix")
}
}
// scale the abs used to pick the pivot.
// scale the abs used to pick the pivot.
Line 1,315: Line 1,318:
max = abs
max = abs
}
}
}
if a[iMax][k] == 0 {
panic("Irregular matrix")
}
}
if k != iMax {
if k != iMax {