complex_simple.F90 3.42 KB
Newer Older
1
2
!    This file is part of ELPA.
!
3
!    The ELPA library was originally created by the ELPA consortium,
4
5
!    consisting of the following organizations:
!
6
7
!    - Max Planck Computing and Data Facility (MPCDF), formerly known as
!      Rechenzentrum Garching der Max-Planck-Gesellschaft (RZG),
8
9
10
!    - Bergische Universität Wuppertal, Lehrstuhl für angewandte
!      Informatik,
!    - Technische Universität München, Lehrstuhl für Informatik mit
11
12
!      Schwerpunkt Wissenschaftliches Rechnen ,
!    - Fritz-Haber-Institut, Berlin, Abt. Theorie,
13
!    - Max-Plack-Institut für Mathematik in den Naturwissenschaften,
14
15
!      Leipzig, Abt. Komplexe Strukutren in Biologie und Kognition,
!      and
16
17
18
19
!    - IBM Deutschland GmbH
!
!
!    More information can be found here:
20
!    http://elpa.mpcdf.mpg.de/
21
22
!
!    ELPA is free software: you can redistribute it and/or modify
23
24
!    it under the terms of the version 3 of the license of the
!    GNU Lesser General Public License as published by the Free
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
!    Software Foundation.
!
!    ELPA is distributed in the hope that it will be useful,
!    but WITHOUT ANY WARRANTY; without even the implied warranty of
!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!    GNU Lesser General Public License for more details.
!
!    You should have received a copy of the GNU Lesser General Public License
!    along with ELPA.  If not, see <http://www.gnu.org/licenses/>
!
!    ELPA reflects a substantial effort on the part of the original
!    ELPA consortium, and we ask you to respect the spirit of the
!    license that we chose: i.e., please contribute any changes you
!    may have back to the original ELPA library distribution, and keep
!    any derivatives of ELPA under the same license that we chose for
!    the original distribution, the GNU Lesser General Public License.
!
!
! --------------------------------------------------------------------------------------------------
!
! This file contains the compute intensive kernels for the Householder transformations.
!
! This is the small and simple version (no hand unrolling of loops etc.) but for some
! compilers this performs better than a sophisticated version with transformed and unrolled loops.
!
! It should be compiled with the highest possible optimization level.
51
!
52
53
54
55
56
57
! Copyright of the original code rests with the authors inside the ELPA
! consortium. The copyright of any additional modifications shall rest
! with their original authors, but shall adhere to the licensing terms
! distributed along with the original code in the file "COPYING".
!
! --------------------------------------------------------------------------------------------------
58
59
60

#include "config-f90.h"

61
#ifndef USE_ASSUMED_SIZE
Andreas Marek's avatar
Andreas Marek committed
62
module complex_generic_simple_kernel
63

Andreas Marek's avatar
Andreas Marek committed
64
  private
65
66
67
68
69
70
  public single_hh_trafo_complex_generic_simple_double
#ifdef WANT_SINGLE_PRECISION_COMPLEX
  public single_hh_trafo_complex_generic_simple_single
#endif

  contains
71
#endif
72

73
#define COMPLEXCASE 1
74
#define DOUBLE_PRECISION 1
75
#include "../../general/precision_macros.h"
Andreas Marek's avatar
Andreas Marek committed
76
#include "simple_template.X90"
77
#undef COMPLEXCASE
78
#undef DOUBLE_PRECISION
79
80

#ifdef WANT_SINGLE_PRECISION_COMPLEX
81
#define COMPLEXCASE 1
82
#define SINGLE_PRECISION 1
83
#include "../../general/precision_macros.h"
Andreas Marek's avatar
Andreas Marek committed
84
#include "simple_template.X90"
85
#undef COMPLEXCASE
86
#undef SINGLE_PRECISION
87
#endif
88

89
#ifndef USE_ASSUMED_SIZE
Andreas Marek's avatar
Andreas Marek committed
90
end module complex_generic_simple_kernel
91
#endif
92
! --------------------------------------------------------------------------------------------------