Golem is hosted by Hepforge, IPPP Durham

src/module/translate [ Modules ]

[ Top ] [ Modules ]

NAME

  Module translate

USAGE

  use translate

DESCRIPTION

  This module is used to translate an array of n (=2m) reals into an array
  of m complexs

OUTPUT

  It exports:
  * to_complex -- a subroutine to translate an array of n (=2m) reals into an array
                  of m complexs

USES

  * precision_golem (src/module/precision_golem.f90)
  * sortie_erreur (src/module/sortie_erreur.f90)

src/module/translate/to_complex [ Functions ]

[ Top ] [ Functions ]

NAME

  Subroutine to_complex

USAGE

  call to_complex(t,z)

DESCRIPTION

  This subroutine transforms an array of reals of rank 1 and shape 2*m 
  t in an array of complexs of size m z, it returns z(i) = t(i) + i_*t(i+1). 
  If size of t is odd, the subroutine to_complex returns an error

INPUTS

  * t -- a real array (type ki) of rank 1

SIDE EFFECTS

  No side effect

RETURN VALUE

  * z -- a complex array (type ki) of rank 1 and shape size(t)/2

EXAMPLE