Returns a division of two spectrum instances.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spectrum_type), | intent(in) | :: | self | l.h.s. spectrum instance |
||
class(spectrum_type), | intent(in) | :: | s2 | 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_div_spectrum(self,s2)&
result(spec)
!! Returns a division of two spectrum instances.
class(spectrum_type),intent(in) :: self !! l.h.s. spectrum instance
class(spectrum_type),intent(in) :: s2 !! r.h.s. spectrum instance
spec = self
spec = self % getSpectrum() / s2 % getSpectrum()
endfunction spectrum_div_spectrum