File: vcl_valarray.h

package info (click to toggle)
insighttoolkit 3.6.0-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 94,956 kB
  • ctags: 74,981
  • sloc: cpp: 355,621; ansic: 195,070; fortran: 28,713; python: 3,802; tcl: 1,996; sh: 1,175; java: 583; makefile: 415; csh: 184; perl: 175
file content (41 lines) | stat: -rw-r--r-- 856 bytes parent folder | download | duplicates (4)
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
#ifndef vcl_valarray_h_
#define vcl_valarray_h_
/*
  fsm
*/

#include "vcl_compiler.h"

#if defined(VCL_GCC_295)
# include <valarray> // 2.95
# define vcl_valarray valarray

#elif defined(VCL_VC60)
# include "win32-vc60/vcl_valarray.h"

#elif defined(VCL_VC70)
# include "win32-vc70/vcl_valarray.h"

#else
# include "iso/vcl_valarray.h"
#endif

#if !VCL_COMPLEX_POW_WORKS
// deal with corrections to pow(complex...)
# undef vcl_pow
# define vcl_pow vcl_pow
template<class T> inline vcl_valarray<T>
  vcl_pow(const vcl_valarray<T>& x, const vcl_valarray<T>& y)
{ return std::pow(x, y); }

template<class T> inline vcl_valarray<T>
  vcl_pow(const vcl_valarray<T>& x, const T& y)
{ return std::pow(x, y); }

template<class T> inline vcl_valarray<T>
  vcl_pow(const T& x, const vcl_valarray<T>& y)
{ return std::pow(x, y); }

#endif

#endif // vcl_valarray_h_