GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Array-i.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 1994-2021 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 #if defined (HAVE_CONFIG_H)
27 # include "config.h"
28 #endif
29 
30 #include "oct-inttypes.h"
31 
32 // Instantiate Arrays of integer values.
33 
34 #include "Array.h"
35 #include "Array.cc"
36 
37 #define INLINE_ASCENDING_SORT 1
38 #define INLINE_DESCENDING_SORT 1
39 #include "oct-sort.cc"
40 
41 // Prevent implicit instantiations on some systems (Windows, others?)
42 // that can lead to duplicate definitions of static data members.
43 
44 extern template class OCTAVE_API Array<idx_vector>;
45 
46 template class OCTAVE_API octave_sort<int>;
47 template class OCTAVE_API octave_sort<long>;
48 #if defined (OCTAVE_HAVE_LONG_LONG_INT)
49 template class OCTAVE_API octave_sort<long long>;
50 #endif
51 
52 INSTANTIATE_ARRAY (int, OCTAVE_API);
53 INSTANTIATE_ARRAY (long, OCTAVE_API);
54 #if defined (OCTAVE_HAVE_LONG_LONG_INT)
55 INSTANTIATE_ARRAY (long long, OCTAVE_API);
56 #endif
57 
58 template class OCTAVE_API octave_sort<octave_int8>;
59 template class OCTAVE_API octave_sort<octave_int16>;
60 template class OCTAVE_API octave_sort<octave_int32>;
61 template class OCTAVE_API octave_sort<octave_int64>;
62 
67 
68 template class OCTAVE_API octave_sort<octave_uint8>;
69 template class OCTAVE_API octave_sort<octave_uint16>;
70 template class OCTAVE_API octave_sort<octave_uint32>;
71 template class OCTAVE_API octave_sort<octave_uint64>;
72 
77 
78 #include "DiagArray2.h"
79 #include "DiagArray2.cc"
80 
81 template class OCTAVE_API DiagArray2<int>;
#define INSTANTIATE_ARRAY(T, API)
Definition: Array.cc:2767
N Dimensional Array with copy-on-write semantics.
Definition: Array.h:128