| [221] | 1 | /*************************************************************************** | 
|---|
|  | 2 | * blitz/blitz.h      Includes all the important header files | 
|---|
|  | 3 | * | 
|---|
|  | 4 | * $Id: blitz.h,v 1.1.1.1 1999-04-09 17:58:58 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.7  1998/03/14 00:04:47  tveldhui | 
|---|
|  | 27 | * 0.2-alpha-05 | 
|---|
|  | 28 | * | 
|---|
|  | 29 | * Revision 1.6  1997/07/16 14:51:20  tveldhui | 
|---|
|  | 30 | * Update: Alpha release 0.2 (Arrays) | 
|---|
|  | 31 | * | 
|---|
|  | 32 | * Revision 1.5  1997/01/24 14:42:00  tveldhui | 
|---|
|  | 33 | * Periodic RCS update | 
|---|
|  | 34 | * | 
|---|
|  | 35 | * Revision 1.4  1997/01/23 03:28:28  tveldhui | 
|---|
|  | 36 | * Periodic RCS update | 
|---|
|  | 37 | * | 
|---|
|  | 38 | * Revision 1.3  1997/01/13 22:19:58  tveldhui | 
|---|
|  | 39 | * Periodic RCS update | 
|---|
|  | 40 | * | 
|---|
|  | 41 | * Revision 1.2  1996/11/11 17:29:13  tveldhui | 
|---|
|  | 42 | * Periodic RCS update | 
|---|
|  | 43 | * | 
|---|
|  | 44 | * Revision 1.1  1996/04/14  21:13:00  todd | 
|---|
|  | 45 | * Initial revision | 
|---|
|  | 46 | * | 
|---|
|  | 47 | */ | 
|---|
|  | 48 |  | 
|---|
|  | 49 | #ifndef BZ_BLITZ_H | 
|---|
|  | 50 | #define BZ_BLITZ_H | 
|---|
|  | 51 |  | 
|---|
|  | 52 | /* | 
|---|
|  | 53 | * These symbols allow use of the IEEE and System V math libraries | 
|---|
|  | 54 | * (libm.a and libmsaa.a) on some platforms. | 
|---|
|  | 55 | */ | 
|---|
|  | 56 |  | 
|---|
|  | 57 | #ifndef BZ_DISABLE_XOPEN_SOURCE | 
|---|
|  | 58 | #ifndef _ALL_SOURCE | 
|---|
|  | 59 | #define _ALL_SOURCE | 
|---|
|  | 60 | #endif | 
|---|
|  | 61 | #ifndef _XOPEN_SOURCE | 
|---|
|  | 62 | #define _XOPEN_SOURCE | 
|---|
|  | 63 | #endif | 
|---|
|  | 64 | #ifndef _XOPEN_SOURCE_EXTENDED | 
|---|
|  | 65 | #define _XOPEN_SOURCE_EXTENDED 1 | 
|---|
|  | 66 | #endif | 
|---|
|  | 67 | #endif | 
|---|
|  | 68 |  | 
|---|
|  | 69 | #include <blitz/compiler.h>          // Compiler-specific directives | 
|---|
|  | 70 | #include <blitz/tuning.h>            // Performance tuning | 
|---|
|  | 71 | #include <blitz/tau.h>               // Profiling | 
|---|
|  | 72 |  | 
|---|
|  | 73 | #include <string> | 
|---|
|  | 74 | #include <stdio.h>                   // sprintf, etc. | 
|---|
|  | 75 |  | 
|---|
|  | 76 | #ifdef BZ_HAVE_STD | 
|---|
|  | 77 | #include <iostream> | 
|---|
|  | 78 | #include <iomanip> | 
|---|
|  | 79 | #include <cmath> | 
|---|
|  | 80 | #else | 
|---|
|  | 81 | #include <iostream.h> | 
|---|
|  | 82 | #include <iomanip.h> | 
|---|
|  | 83 | #endif | 
|---|
|  | 84 |  | 
|---|
|  | 85 | #include <math.h> | 
|---|
|  | 86 |  | 
|---|
|  | 87 | #ifdef BZ_HAVE_COMPLEX | 
|---|
|  | 88 | #include <complex> | 
|---|
|  | 89 | #endif | 
|---|
|  | 90 |  | 
|---|
|  | 91 | #define BZ_THROW                     // Needed in <blitz/numinquire.h> | 
|---|
|  | 92 |  | 
|---|
|  | 93 | BZ_NAMESPACE(blitz) | 
|---|
|  | 94 |  | 
|---|
|  | 95 | #ifdef BZ_HAVE_STD | 
|---|
|  | 96 | BZ_USING_NAMESPACE(std) | 
|---|
|  | 97 | #endif | 
|---|
|  | 98 |  | 
|---|
|  | 99 | #ifdef BZ_GENERATE_GLOBAL_INSTANCES | 
|---|
|  | 100 | #define _bz_global | 
|---|
|  | 101 | #define BZ_GLOBAL_INIT(X)   =X | 
|---|
|  | 102 | #else | 
|---|
|  | 103 | #define _bz_global extern | 
|---|
|  | 104 | #define BZ_GLOBAL_INIT(X) | 
|---|
|  | 105 | #endif | 
|---|
|  | 106 |  | 
|---|
|  | 107 | BZ_NAMESPACE_END | 
|---|
|  | 108 |  | 
|---|
|  | 109 | #include <blitz/bzdebug.h>           // Debugging macros | 
|---|
|  | 110 |  | 
|---|
|  | 111 | #endif // BZ_BLITZ_H | 
|---|