GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ov-range-traits.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2020-2023 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 (octave_ov_range_traits_h)
27 #define octave_ov_range_traits_h 1
28 
29 #include "octave-config.h"
30 
31 #include "ov-bool-mat.h"
32 #include "ov-bool.h"
33 #include "ov-float.h"
34 #include "ov-flt-re-mat.h"
35 #include "ov-int16.h"
36 #include "ov-int32.h"
37 #include "ov-int64.h"
38 #include "ov-int8.h"
39 #include "ov-re-mat.h"
40 #include "ov-scalar.h"
41 #include "ov-uint16.h"
42 #include "ov-uint32.h"
43 #include "ov-uint64.h"
44 #include "ov-uint8.h"
45 
46 template <typename T>
47 class
49 {
50 public:
51  typedef T scalar_type;
52  typedef T matrix_type;
53 };
54 
55 template <>
56 class
58 {
59 public:
62 };
63 
64 template <>
65 class
67 {
68 public:
71 };
72 
73 template <>
74 class
76 {
77 public:
80 };
81 
82 template <>
83 class
85 {
86 public:
87  typedef octave_int8_scalar scalar_type;
88  typedef octave_int8_matrix matrix_type;
89 };
90 
91 template <>
92 class
94 {
95 public:
96  typedef octave_int16_scalar scalar_type;
97  typedef octave_int16_matrix matrix_type;
98 };
99 
100 template <>
101 class
103 {
104 public:
105  typedef octave_int32_scalar scalar_type;
106  typedef octave_int32_matrix matrix_type;
107 };
108 
109 template <>
110 class
112 {
113 public:
114  typedef octave_int64_scalar scalar_type;
115  typedef octave_int64_matrix matrix_type;
116 };
117 
118 template <>
119 class
121 {
122 public:
123  typedef octave_uint8_scalar scalar_type;
124  typedef octave_uint8_matrix matrix_type;
125 };
126 
127 template <>
128 class
130 {
131 public:
132  typedef octave_uint16_scalar scalar_type;
133  typedef octave_uint16_matrix matrix_type;
134 };
135 
136 template <>
137 class
139 {
140 public:
141  typedef octave_uint32_scalar scalar_type;
142  typedef octave_uint32_matrix matrix_type;
143 };
144 
145 template <>
146 class
148 {
149 public:
152 };
153 
154 #endif