commoninc.hpp

Go to the documentation of this file.
00001 /* Kernel Independent Fast Multipole Method
00002    Copyright (C) 2004 Lexing Ying, New York University
00003 
00004 This program is free software; you can redistribute it and/or modify
00005 it under the terms of the GNU General Public License as published by
00006 the Free Software Foundation; either version 2, or (at your option)
00007 any later version.
00008 
00009 This program is distributed in the hope that it will be useful, but WITHOUT
00010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00012 for more details.
00013 
00014 You should have received a copy of the GNU General Public License
00015 along with this program; see the file COPYING.  If not, write to the Free
00016 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00017 02111-1307, USA.  */
00018 
00019 #ifndef _COMMONINC_HPP_
00020 #define _COMMONINC_HPP_
00021 
00022 //STL stuff
00023 #include <iostream>
00024 #include <fstream>
00025 #include <sstream>
00026 
00027 #include <cfloat>
00028 #include <cassert>
00029 #include <cmath>
00030 #include <string>
00031 #include <complex>
00032 
00033 #include <vector>
00034 #include <set>
00035 #include <map>
00036 #include <deque>
00037 #include <queue>
00038 #include <utility>
00039 #include <algorithm>
00040 
00041 //FFTW stuff
00042 #include "fftw3.h"
00043 
00044 //BLAS LAPACK STUFF
00045 #include "blas.h"
00046 #include "lapack.h"
00047 
00049 typedef std::complex<double> cpx;
00050 
00051 //AUX functions
00053 inline int pow2(int l) { assert(l>=0); return (1<<l); }
00054 
00056 #define iC(fun)  { int ierr=fun; assert(ierr==0); }
00057 
00058 #define iA(expr) { if((expr)==0) { std::cerr<<"wrong"<<std::endl; assert(expr); } } //assert
00059 
00060 #endif

Generated on Sun Dec 4 18:13:12 2005 for common by  doxygen 1.4.5