Returns a negative value of the spectrum instance.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spectrum_type), | intent(in) | :: | self | r.h.s. spectrum instance |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
pure elemental type(spectrum_type) function spectrum_unary_minus(self)&
result(spec)
!! Returns a negative value of the spectrum instance.
class(spectrum_type),intent(in) :: self !! r.h.s. spectrum instance
spec = self
spec = - self % getSpectrum()
endfunction spectrum_unary_minus