File: arcomp.h

package info (click to toggle)
arpack%2B%2B 2.3-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,548 kB
  • ctags: 3,751
  • sloc: cpp: 16,612; sh: 8,819; ansic: 2,312; makefile: 257
file content (46 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
  ARPACK++ v1.2 2/20/2000
  c++ interface to ARPACK code.

  MODULE arcomp.h
  arcomplex complex type definition.

  ARPACK Authors
     Richard Lehoucq
     Danny Sorensen
     Chao Yang
     Dept. of Computational & Applied Mathematics
     Rice University
     Houston, Texas
*/

#ifndef ARCOMP_H
#define ARCOMP_H

#include <complex>

#ifdef __GNUG__
  
#define arcomplex std::complex

#endif

#if defined(__SUNPRO_CC) || defined(__sgi)

  template <class ARFLOAT>
  class arcomplex: public complex
  {
   public:

    arcomplex(ARFLOAT x, ARFLOAT y): complex(x,y) { }
    arcomplex(): complex() { }
    arcomplex(complex x): complex(x) { }

  };

#endif

#endif // ARCOMP_H