Mercurial > hg > octave-nkf
annotate liboctave/Array-i.cc @ 8290:7cbe01c21986
improve dense array indexing
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 20 Oct 2008 16:54:28 +0200 |
parents | da006c2fe55c |
children | 314be237cd5b |
rev | line source |
---|---|
881 | 1 /* |
2 | |
7017 | 3 Copyright (C) 1994, 1995, 1996, 1997, 1998, 2001, 2003, 2004, 2005, |
4 2006, 2007 John W. Eaton | |
881 | 5 |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
881 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
881 | 21 |
22 */ | |
23 | |
2006 | 24 #ifdef HAVE_CONFIG_H |
25 #include <config.h> | |
26 #endif | |
27 | |
4902 | 28 #include "oct-inttypes.h" |
29 | |
881 | 30 // Instantiate Arrays of integer values. |
31 | |
32 #include "Array.h" | |
33 #include "Array.cc" | |
7433 | 34 #include "oct-sort.cc" |
35 | |
36 INSTANTIATE_ARRAY_SORT (int); | |
37 INSTANTIATE_ARRAY_SORT (long); | |
7442 | 38 #if defined (HAVE_LONG_LONG_INT) |
39 INSTANTIATE_ARRAY_SORT (long long); | |
40 #endif | |
881 | 41 |
6708 | 42 INSTANTIATE_ARRAY_AND_ASSIGN (int, OCTAVE_API); |
43 INSTANTIATE_ARRAY_AND_ASSIGN (long, OCTAVE_API); | |
7442 | 44 #if defined (HAVE_LONG_LONG_INT) |
45 INSTANTIATE_ARRAY_AND_ASSIGN (long long, OCTAVE_API); | |
46 #endif | |
1574 | 47 |
8290
7cbe01c21986
improve dense array indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
7442
diff
changeset
|
48 INSTANTIATE_ARRAY_ASSIGN (int, short, OCTAVE_API) |
7cbe01c21986
improve dense array indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
7442
diff
changeset
|
49 INSTANTIATE_ARRAY_ASSIGN (int, char, OCTAVE_API) |
3836 | 50 |
7433 | 51 INSTANTIATE_ARRAY_SORT (octave_int8); |
52 INSTANTIATE_ARRAY_SORT (octave_int16); | |
53 INSTANTIATE_ARRAY_SORT (octave_int32); | |
54 INSTANTIATE_ARRAY_SORT (octave_int64); | |
55 | |
6708 | 56 INSTANTIATE_ARRAY_AND_ASSIGN (octave_int8, OCTAVE_API); |
57 INSTANTIATE_ARRAY_AND_ASSIGN (octave_int16, OCTAVE_API); | |
58 INSTANTIATE_ARRAY_AND_ASSIGN (octave_int32, OCTAVE_API); | |
59 INSTANTIATE_ARRAY_AND_ASSIGN (octave_int64, OCTAVE_API); | |
4902 | 60 |
7433 | 61 INSTANTIATE_ARRAY_SORT (octave_uint8); |
62 INSTANTIATE_ARRAY_SORT (octave_uint16); | |
63 INSTANTIATE_ARRAY_SORT (octave_uint32); | |
64 INSTANTIATE_ARRAY_SORT (octave_uint64); | |
65 | |
6708 | 66 INSTANTIATE_ARRAY_AND_ASSIGN (octave_uint8, OCTAVE_API); |
67 INSTANTIATE_ARRAY_AND_ASSIGN (octave_uint16, OCTAVE_API); | |
68 INSTANTIATE_ARRAY_AND_ASSIGN (octave_uint32, OCTAVE_API); | |
69 INSTANTIATE_ARRAY_AND_ASSIGN (octave_uint64, OCTAVE_API); | |
4902 | 70 |
1989 | 71 #include "Array2.h" |
72 | |
6108 | 73 template class OCTAVE_API Array2<int>; |
1989 | 74 |
75 #include "DiagArray2.h" | |
76 #include "DiagArray2.cc" | |
77 | |
6108 | 78 template class OCTAVE_API DiagArray2<int>; |
1989 | 79 |
881 | 80 /* |
81 ;;; Local Variables: *** | |
82 ;;; mode: C++ *** | |
83 ;;; End: *** | |
84 */ |