This repository has been archived by the owner on May 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
array-old.h
56 lines (51 loc) · 2.25 KB
/
array-old.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/***************************************************************************
* blitz/array-old.h Maximal include version of Array<P_numtype, N_rank>
* Note: see <blitz/array-impl.h> for the class def.
*
* $Id: array-old.h,v 1.2 2003/01/14 11:29:18 patricg Exp $
*
* Copyright (C) 1997-2001 Todd Veldhuizen <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* Suggestions: [email protected]
* Bugs: [email protected]
*
* For more information, please see the Blitz++ Home Page:
* http://oonumerics.org/blitz/
*
***************************************************************************/
#ifndef BZ_ARRAY_OLD_H
#define BZ_ARRAY_OLD_H
/*
* <blitz/array.h> used to include most of the Blitz++ library
* functionality, totally ~ 120000 lines of source code. This
* made for extremely slow compile times; processing #include <blitz/array.h>
* took gcc about 25 seconds on a 500 MHz pentium box.
*
* Much of this compile time was due to the old vector expression templates
* implementation. Since this is not really needed for the Array<T,N>
* class, the headers were redesigned so that:
*
* #include <blitz/array-old.h> is the old-style include, pulls in most
* of Blitz++ including vector e.t.
* #include <blitz/array.h> pulls in much less of the library, and
* in particular excludes the vector e.t. code
*
* With <blitz/array-old.h>, one gets TinyVector expressions automatically.
* With <blitz/array.h>, one must now also include <blitz/tinyvec-et.h>
* to get TinyVector expressions.
*
* The implementation of Array<T,N> has been moved to <blitz/array-impl.h>.
*/
#include <blitz/tinyvec-et.h>
#include <blitz/array-impl.h>
#endif // BZ_ARRAY_OLD_H