GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
ov-range-traits.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2020-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 (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>
48{
49public:
50 typedef T scalar_type;
51 typedef T matrix_type;
52};
53
54template <>
61
62template <>
69
70template <>
77
78template <>
80{
81public:
82 typedef octave_int8_scalar scalar_type;
83 typedef octave_int8_matrix matrix_type;
84};
85
86template <>
88{
89public:
90 typedef octave_int16_scalar scalar_type;
91 typedef octave_int16_matrix matrix_type;
92};
93
94template <>
96{
97public:
98 typedef octave_int32_scalar scalar_type;
99 typedef octave_int32_matrix matrix_type;
100};
101
102template <>
104{
105public:
106 typedef octave_int64_scalar scalar_type;
107 typedef octave_int64_matrix matrix_type;
108};
109
110template <>
112{
113public:
114 typedef octave_uint8_scalar scalar_type;
115 typedef octave_uint8_matrix matrix_type;
116};
117
118template <>
120{
121public:
122 typedef octave_uint16_scalar scalar_type;
123 typedef octave_uint16_matrix matrix_type;
124};
125
126template <>
128{
129public:
130 typedef octave_uint32_scalar scalar_type;
131 typedef octave_uint32_matrix matrix_type;
132};
133
134template <>
141
142#endif