Mercurial > hg > octave-lyh
annotate liboctave/Array-i.cc @ 8721:e9cb742df9eb
imported patch sort3.diff
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 11 Feb 2009 15:25:53 +0100 |
parents | 314be237cd5b |
children | eb63fbe60fab |
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" | |
8700 | 34 |
35 #define INLINE_ASCENDING_SORT | |
36 #define INLINE_DESCENDING_SORT | |
7433 | 37 #include "oct-sort.cc" |
38 | |
39 INSTANTIATE_ARRAY_SORT (int); | |
40 INSTANTIATE_ARRAY_SORT (long); | |
7442 | 41 #if defined (HAVE_LONG_LONG_INT) |
42 INSTANTIATE_ARRAY_SORT (long long); | |
43 #endif | |
881 | 44 |
8721
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
45 INSTANTIATE_ARRAY (int, OCTAVE_API); |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
46 INSTANTIATE_ARRAY (long, OCTAVE_API); |
7442 | 47 #if defined (HAVE_LONG_LONG_INT) |
8721
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
48 INSTANTIATE_ARRAY (long long, OCTAVE_API); |
7442 | 49 #endif |
1574 | 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 | |
8721
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
56 INSTANTIATE_ARRAY (octave_int8, OCTAVE_API); |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
57 INSTANTIATE_ARRAY (octave_int16, OCTAVE_API); |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
58 INSTANTIATE_ARRAY (octave_int32, OCTAVE_API); |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
59 INSTANTIATE_ARRAY (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 | |
8721
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
66 INSTANTIATE_ARRAY (octave_uint8, OCTAVE_API); |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
67 INSTANTIATE_ARRAY (octave_uint16, OCTAVE_API); |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
68 INSTANTIATE_ARRAY (octave_uint32, OCTAVE_API); |
e9cb742df9eb
imported patch sort3.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8700
diff
changeset
|
69 INSTANTIATE_ARRAY (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 */ |