1-norm function
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nlesolver_type), | intent(in) | :: | me | |||
| real(kind=wp), | intent(in), | dimension(me%m) | :: | fvec |
the function vector |
norm of the vector
pure function norm_1(me, fvec) result(f) class(nlesolver_type),intent(in) :: me real(wp),dimension(me%m),intent(in) :: fvec !! the function vector real(wp) :: f !! norm of the vector f = sum(abs(fvec)) end function norm_1