GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
Array-i.cc
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 1994-2025 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
39extern 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
47template class octave_sort<signed char>;
48//template class octave_sort<short>;
49template class octave_sort<int>;
50template class octave_sort<long>;
51#if defined (OCTAVE_HAVE_LONG_LONG_INT)
52template class octave_sort<long long>;
53#endif
54
55INSTANTIATE_ARRAY (signed char, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
56//INSTANTIATE_ARRAY (short, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
57INSTANTIATE_ARRAY (int, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
58INSTANTIATE_ARRAY (long, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
59#if defined (OCTAVE_HAVE_LONG_LONG_INT)
60INSTANTIATE_ARRAY (long long, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
61#endif
62
63template class octave_sort<unsigned char>;
64template class octave_sort<unsigned short>;
65template class octave_sort<unsigned int>;
66template class octave_sort<unsigned long>;
67#if defined (OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT)
69#endif
70
71INSTANTIATE_ARRAY (unsigned char, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
72INSTANTIATE_ARRAY (unsigned short, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
73INSTANTIATE_ARRAY (unsigned int, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
74INSTANTIATE_ARRAY (unsigned long, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
75#if defined (OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT)
76INSTANTIATE_ARRAY (unsigned long long, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
77#endif
78
79template class octave_sort<octave_int8>;
80template class octave_sort<octave_int16>;
81template class octave_sort<octave_int32>;
82template class octave_sort<octave_int64>;
83
84INSTANTIATE_ARRAY (octave_int8, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
85INSTANTIATE_ARRAY (octave_int16, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
86INSTANTIATE_ARRAY (octave_int32, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
87INSTANTIATE_ARRAY (octave_int64, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
88
89template class octave_sort<octave_uint8>;
90template class octave_sort<octave_uint16>;
91template class octave_sort<octave_uint32>;
92template class octave_sort<octave_uint64>;
93
94INSTANTIATE_ARRAY (octave_uint8, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
95INSTANTIATE_ARRAY (octave_uint16, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
96INSTANTIATE_ARRAY (octave_uint32, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
97INSTANTIATE_ARRAY (octave_uint64, OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API);
98
99#include "DiagArray2.h"
100#include "DiagArray2.cc"
101
102template class DiagArray2<int>;
#define INSTANTIATE_ARRAY(T, API)
N Dimensional Array with copy-on-write semantics.
Definition Array.h:130