GNU Octave  9.1.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-2024 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-fwd.h"
31 
32 // Instantiate Arrays of integer values.
33 
34 #include "Array.h"
35 
36 // Prevent implicit instantiations on some systems (Windows, others?)
37 // that can lead to duplicate definitions of static data members.
38 
39 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<octave::idx_vector>;
40 
41 #include "Array-base.cc"
42 
43 #define INLINE_ASCENDING_SORT 1
44 #define INLINE_DESCENDING_SORT 1
45 #include "oct-sort.cc"
46 
47 template class octave_sort<signed char>;
48 //template class octave_sort<short>;
49 template class octave_sort<int>;
50 template class octave_sort<long>;
51 #if defined (OCTAVE_HAVE_LONG_LONG_INT)
52 template class octave_sort<long long>;
53 #endif
54 
55 INSTANTIATE_ARRAY (signed char, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
56 //INSTANTIATE_ARRAY (short, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
57 INSTANTIATE_ARRAY (int, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
58 INSTANTIATE_ARRAY (long, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
59 #if defined (OCTAVE_HAVE_LONG_LONG_INT)
60 INSTANTIATE_ARRAY (long long, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
61 #endif
62 
63 template class octave_sort<unsigned char>;
64 template class octave_sort<unsigned short>;
65 template class octave_sort<unsigned int>;
66 template class octave_sort<unsigned long>;
67 #if defined (OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT)
68 template class octave_sort<unsigned long long>;
69 #endif
70 
71 INSTANTIATE_ARRAY (unsigned char, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
72 INSTANTIATE_ARRAY (unsigned short, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
73 INSTANTIATE_ARRAY (unsigned int, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
74 INSTANTIATE_ARRAY (unsigned long, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
75 #if defined (OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT)
76 INSTANTIATE_ARRAY (unsigned long long, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
77 #endif
78 
79 template class octave_sort<octave_int8>;
80 template class octave_sort<octave_int16>;
81 template class octave_sort<octave_int32>;
82 template class octave_sort<octave_int64>;
83 
84 INSTANTIATE_ARRAY (octave_int8, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
85 INSTANTIATE_ARRAY (octave_int16, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
86 INSTANTIATE_ARRAY (octave_int32, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
87 INSTANTIATE_ARRAY (octave_int64, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
88 
89 template class octave_sort<octave_uint8>;
90 template class octave_sort<octave_uint16>;
91 template class octave_sort<octave_uint32>;
92 template class octave_sort<octave_uint64>;
93 
94 INSTANTIATE_ARRAY (octave_uint8, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
95 INSTANTIATE_ARRAY (octave_uint16, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
96 INSTANTIATE_ARRAY (octave_uint32, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
97 INSTANTIATE_ARRAY (octave_uint64, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
98 
99 #include "DiagArray2.h"
100 #include "DiagArray2.cc"
101 
102 template class DiagArray2<int>;
#define INSTANTIATE_ARRAY(T, API)
Definition: Array-base.cc:2782
N Dimensional Array with copy-on-write semantics.
Definition: Array.h:130