Gauss-Jordan matrix inversion: Difference between revisions
m
→Alternative
m (→Alternative) |
m (→Alternative) |
||
Line 1,309:
s = x
}
}▼
panic("Irregular matrix")▼
}
// scale the abs used to pick the pivot.
Line 1,315 ⟶ 1,318:
max = abs
}
▲ }
▲ if a[iMax][k] == 0 {
▲ panic("Irregular matrix")
}
if k != iMax {
|