normalize_field_constraints Subroutine
public pure subroutine normalize_field_constraints(rowptr, col, val, weights, valid)
Convert homogeneous CSR rows to ordinary rational field coefficients. Exponent scaling avoids overflow in A_ijw_j; Aw=0 certifies the denominator.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | rowptr(:) | |||
| integer, | intent(in) | :: | col(:) | |||
| real(kind=rk), | intent(inout) | :: | val(:) | |||
| real(kind=rk), | intent(in) | :: | weights(:) | |||
| logical, | intent(out) | :: | valid |