blitz  Version 1.0.2
types.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /***************************************************************************
3  * blitz/array/types.h Typedefs for various datatypes
4  *
5  * Copyright (C) 2011 Paul P. Hilscher <pphilscher.kyodai@gmail.com>
6  *
7  * This file is a part of Blitz.
8  *
9  * Blitz is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation, either version 3
12  * of the License, or (at your option) any later version.
13  *
14  * Blitz is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with Blitz. If not, see <http://www.gnu.org/licenses/>.
21  *
22  * Suggestions: blitz-devel@lists.sourceforge.net
23  * Bugs: blitz-support@lists.sourceforge.net
24  *
25  * For more information, please see the Blitz++ Home Page:
26  * https://sourceforge.net/projects/blitz/
27  *
28  ***************************************************************************/
29 
30 
31 #ifndef BZ_BLITZ_TYPES_H
32 #define BZ_BLITZ_TYPES_H
33 
34 
35 namespace blitz {
36 
37 // Typedefs for vectors
38 
39 
40 // Typedefs for multi-dimensional arrys
41 
53 
54 
66 
67 
79 
91 
92 #ifdef BZ_HAVE_COMPLEX
93 
94 typedef std::complex<float> cmplxf;
95 typedef std::complex<double> cmplxd;
96 
97 typedef Array<cmplxf, 1> Array1c;
98 typedef Array<cmplxf, 2> Array2c;
99 typedef Array<cmplxf, 3> Array3c;
100 typedef Array<cmplxf, 4> Array4c;
101 typedef Array<cmplxf, 5> Array5c;
102 typedef Array<cmplxf, 6> Array6c;
103 typedef Array<cmplxf, 7> Array7c;
104 typedef Array<cmplxf, 8> Array8c;
105 typedef Array<cmplxf, 9> Array9c;
106 typedef Array<cmplxf,10> Array10c;
107 typedef Array<cmplxf,11> Array11c;
108 
109 typedef Array<cmplxd, 1> Array1z;
110 typedef Array<cmplxd, 2> Array2z;
111 typedef Array<cmplxd, 4> Array4z;
112 typedef Array<cmplxd, 3> Array3z;
113 typedef Array<cmplxd, 5> Array5z;
114 typedef Array<cmplxd, 6> Array6z;
115 typedef Array<cmplxd, 7> Array7z;
116 typedef Array<cmplxd, 8> Array8z;
117 typedef Array<cmplxd, 9> Array9z;
118 typedef Array<cmplxd,10> Array10z;
119 typedef Array<cmplxd,11> Array11z;
120 
121 
122 #endif // BZ_HAVE_COMPLEX
123 
124 
125 // quad precision
126 /*
127 #ifdef HAS_QUAD
128 // not tested yet
129 typedef __float128 quad;
130 typedef Array<quad, 1> Array1q;
131 typedef Array<quad, 2> Array2q;
132 typedef Array<quad, 4> Array4q;
133 typedef Array<quad, 3> Array3q;
134 typedef Array<quad, 5> Array5q;
135 typedef Array<quad, 6> Array6q;
136 typedef Array<quad, 7> Array7q;
137 typedef Array<quad, 8> Array8q;
138 typedef Array<quad, 9> Array9q;
139 typedef Array<quad,10> Array10q;
140 typedef Array<quad,11> Array11q;
141 #endif
142 */
143 
144 };
145 
146 #endif // BZ_BLITZ_TYPES_H
Array< float, 9 > Array9f
Definition: types.h:88
Array< float, 10 > Array10f
Definition: types.h:89
Array< int, 5 > Array5i
Definition: types.h:46
Array< float, 7 > Array7f
Definition: types.h:86
Array< float, 2 > Array2f
Definition: types.h:81
Array< int, 4 > Array4i
Definition: types.h:45
Array< int, 8 > Array8i
Definition: types.h:49
Array< unsigned int, 8 > Array8ui
Definition: types.h:62
Array< int, 1 > Array1i
Definition: types.h:42
Array< float, 11 > Array11f
Definition: types.h:90
Array< double, 2 > Array2d
Definition: types.h:69
Array< int, 7 > Array7i
Definition: types.h:48
Array< double, 9 > Array9d
Definition: types.h:76
Array< unsigned int, 11 > Array11ui
Definition: types.h:65
Array< int, 9 > Array9i
Definition: types.h:50
Array< unsigned int, 6 > Array6ui
Definition: types.h:60
Array< float, 6 > Array6f
Definition: types.h:85
Array< unsigned int, 10 > Array10ui
Definition: types.h:64
Array< double, 11 > Array11d
Definition: types.h:78
Array< unsigned int, 1 > Array1ui
Definition: types.h:55
Array< unsigned int, 9 > Array9ui
Definition: types.h:63
Array< unsigned int, 4 > Array4ui
Definition: types.h:58
Array< int, 3 > Array3i
Definition: types.h:44
Definition: array-impl.h:66
Array< int, 6 > Array6i
Definition: types.h:47
Array< double, 8 > Array8d
Definition: types.h:75
Array< double, 3 > Array3d
Definition: types.h:70
Array< int, 11 > Array11i
Definition: types.h:52
Array< double, 10 > Array10d
Definition: types.h:77
Array< int, 2 > Array2i
Definition: types.h:43
Array< unsigned int, 5 > Array5ui
Definition: types.h:59
Array< unsigned int, 3 > Array3ui
Definition: types.h:57
Array< double, 6 > Array6d
Definition: types.h:73
Array< float, 5 > Array5f
Definition: types.h:84
Declaration of class Array, the "Swiss army knife" of Blitz expression template classes.
Definition: array-impl.h:106
Array< unsigned int, 2 > Array2ui
Definition: types.h:56
Array< double, 4 > Array4d
Definition: types.h:71
Array< double, 5 > Array5d
Definition: types.h:72
Array< float, 8 > Array8f
Definition: types.h:87
Array< float, 3 > Array3f
Definition: types.h:82
Array< int, 10 > Array10i
Definition: types.h:51
Array< float, 1 > Array1f
Definition: types.h:80
Array< double, 7 > Array7d
Definition: types.h:74
Array< unsigned int, 7 > Array7ui
Definition: types.h:61
Array< float, 4 > Array4f
Definition: types.h:83
Array< double, 1 > Array1d
Definition: types.h:68