The residues are eliminated with a linear least squares fit (mpa_R_fit, variable projection).
The residual is normalized to xmax and returned as real and imaginary parts.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | np |
|
||
| integer, | intent(in) | :: | n |
|
||
| complex(kind=DP), | intent(in) | :: | w(2*np) |
|
||
| complex(kind=DP), | intent(in) | :: | x(2*np) |
|
||
| real(kind=DP), | intent(in) | :: | xmax |
Normalization of the residual |
||
| complex(kind=DP), | intent(in) | :: | E(np) |
|
||
| real(kind=DP), | intent(out) | :: | r(4*np) |
|
||
| real(kind=DP), | intent(out) | :: | cost |
|