fn any_nonfinite(matrix: MatRef<'_, Complex>) -> bool
Whether any entry is not finite, scanning contiguous storage without early exit so the scan vectorizes.