ARTS  2.2.66
matpack.h
Go to the documentation of this file.
1 /* Copyright (C) 2006-2012 Oliver Lemke <olemke@core-dump.info>
2 
3  This program is free software; you can redistribute it and/or modify it
4  under the terms of the GNU General Public License as published by the
5  Free Software Foundation; either version 2, or (at your option) any
6  later version.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16  USA. */
17 
18 #ifndef matpack_h
19 #define matpack_h
20 
21 #include "config_global.h"
22 #include "debug.h"
23 
24 
25 //--------------------< Set floating point type >--------------------
29 typedef NUMERIC Numeric;
30 
31 //--------------------< Set integer type >--------------------
35 typedef INDEX Index;
36 
37 // In C++ 11 isnan and isinf were introduced.
38 // This confuses g++ because it can't decide whether to
39 // call the old functions or the new ones
40 #if (__cplusplus >= 201103L)
41 #include <cmath>
42 #define isnan std::isnan
43 #define isinf std::isinf
44 #endif
45 
46 #endif // matpackI_h
config_global.h
Numeric
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:29
INDEX
#define INDEX
Definition: config.h:95
Index
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:35
debug.h
Helper macros for debugging.
NUMERIC
#define NUMERIC
Definition: config.h:98