GNU Octave 7.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-2022 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
46template <typename T>
47class
49{
50public:
51 typedef T scalar_type;
52 typedef T matrix_type;
53};
54
55template <>
56class
58{
59public:
62};
63
64template <>
65class
67{
68public:
71};
72
73template <>
74class
76{
77public:
80};
81
82template <>
83class
85{
86public:
87 typedef octave_int8_scalar scalar_type;
88 typedef octave_int8_matrix matrix_type;
89};
90
91template <>
92class
94{
95public:
96 typedef octave_int16_scalar scalar_type;
97 typedef octave_int16_matrix matrix_type;
98};
99
100template <>
101class
103{
104public:
105 typedef octave_int32_scalar scalar_type;
106 typedef octave_int32_matrix matrix_type;
107};
108
109template <>
110class
112{
113public:
114 typedef octave_int64_scalar scalar_type;
115 typedef octave_int64_matrix matrix_type;
116};
117
118template <>
119class
121{
122public:
123 typedef octave_uint8_scalar scalar_type;
124 typedef octave_uint8_matrix matrix_type;
125};
126
127template <>
128class
130{
131public:
132 typedef octave_uint16_scalar scalar_type;
133 typedef octave_uint16_matrix matrix_type;
134};
135
136template <>
137class
139{
140public:
141 typedef octave_uint32_scalar scalar_type;
142 typedef octave_uint32_matrix matrix_type;
143};
144
145template <>
146class
148{
149public:
152};
153
154#endif