Logical equality comparison function. Overloads the ==
operator.
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 logical function eq(self,s2)
!! Logical equality comparison function. Overloads the `==` operator.
class(spectrum_type),intent(in) :: self !! l.h.s. spectrum instance
class(spectrum_type),intent(in) :: s2 !! r.h.s. spectrum instance
eq = all(self % getSpectrum() == s2 % getSpectrum())
endfunction eq