1 | /***************************************************************************
|
---|
2 | * blitz/blitz.h Includes all the important header files
|
---|
3 | *
|
---|
4 | * $Id: blitz.h,v 1.1.1.1 1999-11-26 16:37:03 ansari Exp $
|
---|
5 | *
|
---|
6 | * Copyright (C) 1997,1998 Todd Veldhuizen <tveldhui@seurat.uwaterloo.ca>
|
---|
7 | *
|
---|
8 | * This program is free software; you can redistribute it and/or
|
---|
9 | * modify it under the terms of the GNU General Public License
|
---|
10 | * as published by the Free Software Foundation; either version 2
|
---|
11 | * of the License, or (at your option) any later version.
|
---|
12 | *
|
---|
13 | * This program is distributed in the hope that it will be useful,
|
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16 | * GNU General Public License for more details.
|
---|
17 | *
|
---|
18 | * Suggestions: blitz-suggest@cybervision.com
|
---|
19 | * Bugs: blitz-bugs@cybervision.com
|
---|
20 | *
|
---|
21 | * For more information, please see the Blitz++ Home Page:
|
---|
22 | * http://seurat.uwaterloo.ca/blitz/
|
---|
23 | *
|
---|
24 | ***************************************************************************
|
---|
25 | * $Log: not supported by cvs2svn $
|
---|
26 | * Revision 1.1.1.1 1999/04/09 17:58:58 ansari
|
---|
27 | * Creation module DPC/Blitz (blitz 0.4) Reza 09/04/99
|
---|
28 | *
|
---|
29 | * Revision 1.7 1998/03/14 00:04:47 tveldhui
|
---|
30 | * 0.2-alpha-05
|
---|
31 | *
|
---|
32 | * Revision 1.6 1997/07/16 14:51:20 tveldhui
|
---|
33 | * Update: Alpha release 0.2 (Arrays)
|
---|
34 | *
|
---|
35 | * Revision 1.5 1997/01/24 14:42:00 tveldhui
|
---|
36 | * Periodic RCS update
|
---|
37 | *
|
---|
38 | * Revision 1.4 1997/01/23 03:28:28 tveldhui
|
---|
39 | * Periodic RCS update
|
---|
40 | *
|
---|
41 | * Revision 1.3 1997/01/13 22:19:58 tveldhui
|
---|
42 | * Periodic RCS update
|
---|
43 | *
|
---|
44 | * Revision 1.2 1996/11/11 17:29:13 tveldhui
|
---|
45 | * Periodic RCS update
|
---|
46 | *
|
---|
47 | * Revision 1.1 1996/04/14 21:13:00 todd
|
---|
48 | * Initial revision
|
---|
49 | *
|
---|
50 | */
|
---|
51 |
|
---|
52 | #ifndef BZ_BLITZ_H
|
---|
53 | #define BZ_BLITZ_H
|
---|
54 |
|
---|
55 | /*
|
---|
56 | * These symbols allow use of the IEEE and System V math libraries
|
---|
57 | * (libm.a and libmsaa.a) on some platforms.
|
---|
58 | */
|
---|
59 |
|
---|
60 | #ifndef BZ_DISABLE_XOPEN_SOURCE
|
---|
61 | #ifndef _ALL_SOURCE
|
---|
62 | #define _ALL_SOURCE
|
---|
63 | #endif
|
---|
64 | #ifndef _XOPEN_SOURCE
|
---|
65 | #define _XOPEN_SOURCE
|
---|
66 | #endif
|
---|
67 | #ifndef _XOPEN_SOURCE_EXTENDED
|
---|
68 | #define _XOPEN_SOURCE_EXTENDED 1
|
---|
69 | #endif
|
---|
70 | #endif
|
---|
71 |
|
---|
72 | #include <blitz/compiler.h> // Compiler-specific directives
|
---|
73 | #include <blitz/tuning.h> // Performance tuning
|
---|
74 | #include <blitz/tau.h> // Profiling
|
---|
75 |
|
---|
76 | #include <string>
|
---|
77 | #include <stdio.h> // sprintf, etc.
|
---|
78 |
|
---|
79 | #ifdef BZ_HAVE_STD
|
---|
80 | #include <iostream>
|
---|
81 | #include <iomanip>
|
---|
82 | #include <cmath>
|
---|
83 | #else
|
---|
84 | #include <iostream.h>
|
---|
85 | #include <iomanip.h>
|
---|
86 | #endif
|
---|
87 |
|
---|
88 | #include <math.h>
|
---|
89 |
|
---|
90 | #ifdef BZ_HAVE_COMPLEX
|
---|
91 | #include <complex>
|
---|
92 | #endif
|
---|
93 |
|
---|
94 | #define BZ_THROW // Needed in <blitz/numinquire.h>
|
---|
95 |
|
---|
96 | BZ_NAMESPACE(blitz)
|
---|
97 |
|
---|
98 | #ifdef BZ_HAVE_STD
|
---|
99 | BZ_USING_NAMESPACE(std)
|
---|
100 | #endif
|
---|
101 |
|
---|
102 | #ifdef BZ_GENERATE_GLOBAL_INSTANCES
|
---|
103 | #define _bz_global
|
---|
104 | #define BZ_GLOBAL_INIT(X) =X
|
---|
105 | #else
|
---|
106 | #define _bz_global extern
|
---|
107 | #define BZ_GLOBAL_INIT(X)
|
---|
108 | #endif
|
---|
109 |
|
---|
110 | BZ_NAMESPACE_END
|
---|
111 |
|
---|
112 | #include <blitz/bzdebug.h> // Debugging macros
|
---|
113 |
|
---|
114 | #endif // BZ_BLITZ_H
|
---|