Returns a product of a spectrum instance and a real number.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(spectrum_type), | intent(in) | :: | self | l.h.s. spectrum instance | ||
| real(kind=rk), | intent(in), | dimension(:,:) | :: | a | r.h.s. real 2-d array | 
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 type(spectrum_type) function spectrum_mult_real2d(self,a)&
  result(spec)
  !! Returns a product of a spectrum instance and a real number.
  class(spectrum_type),intent(in) :: self !! l.h.s. spectrum instance
  real(kind=rk),dimension(:,:),intent(in) :: a !! r.h.s. real 2-d array
  spec = self
  spec = self % getSpectrum() * a
endfunction spectrum_mult_real2d