function that normalises a complex vector a to make it a unit vector, where
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| complex(kind=dp), | intent(in), | dimension(:) | :: | a |
function normalise_complexe(a) result(result) complex(dp), dimension(:), intent(in) :: a complex(dp), dimension(size(a)) :: result result = a / norm_2_complex(a) end function normalise_complexe