open Array; fun pivot(M,m,n) = if m>=n then 0.0 else if m=n-1 then sub(sub(M,m),m) else (* 0