GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
libinterp
octave-value
ov-uint8.cc
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2004-2015 John W. Eaton
4
5
This file is part of Octave.
6
7
Octave is free software; you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by the
9
Free Software Foundation; either version 3 of the License, or (at your
10
option) any later version.
11
12
Octave is distributed in the hope that it will be useful, but WITHOUT
13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15
for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with Octave; see the file COPYING. If not, see
19
<http://www.gnu.org/licenses/>.
20
21
*/
22
23
#ifdef HAVE_CONFIG_H
24
#include <config.h>
25
#endif
26
27
#include <iostream>
28
#include <limits>
29
30
#include "
lo-ieee.h
"
31
#include "
lo-utils.h
"
32
#include "
mx-base.h
"
33
#include "
quit.h
"
34
35
#include "
defun.h
"
36
#include "
gripes.h
"
37
#include "
oct-obj.h
"
38
#include "
oct-lvalue.h
"
39
#include "
oct-hdf5.h
"
40
#include "
ops.h
"
41
#include "
ov-base.h
"
42
43
#include "
ov-base-int.h
"
44
#include "
ov-base-int.cc
"
45
#include "
ov-uint8.h
"
46
#include "
ov-type-conv.h
"
47
#include "
pr-output.h
"
48
#include "
variables.h
"
49
50
#include "
byte-swap.h
"
51
#include "
ls-oct-ascii.h
"
52
#include "
ls-utils.h
"
53
#include "
ls-hdf5.h
"
54
55
template
class
octave_base_matrix<uint8NDArray>
;
56
57
template
class
octave_base_int_matrix<uint8NDArray>
;
58
59
60
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
(octave_uint8_matrix,
61
"uint8 matrix"
,
"uint8"
);
62
63
template
class
octave_base_scalar<octave_uint8>
;
64
65
template
class
octave_base_int_scalar<octave_uint8>
;
66
67
68
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
(octave_uint8_scalar,
69
"uint8 scalar"
,
"uint8"
);
70
71
DEFUN
(uint8, args, ,
72
"-*- texinfo -*-\n\
73
@deftypefn {Built-in Function} {} uint8 (@var{x})\n\
74
Convert @var{x} to unsigned 8-bit integer type.\n\
75
@seealso{int8, int16, uint16, int32, uint32, int64, uint64}\n\
76
@end deftypefn"
)
77
{
78
OCTAVE_TYPE_CONV_BODY
(uint8);
79
}
80
81
/*
82
%!assert (class (uint8 (1)), "uint8")
83
%!assert (uint8 (1.25), uint8 (1))
84
%!assert (uint8 (1.5), uint8 (2))
85
%!assert (uint8 (-1.5), uint8 (0))
86
%!assert (uint8 (2^9), uint8 (2^8-1))
87
%!assert (uint8 (-2^9), uint8 (0))
88
*/
pr-output.h
ls-oct-ascii.h
OCTAVE_TYPE_CONV_BODY
#define OCTAVE_TYPE_CONV_BODY(NAME)
Definition:
ov-type-conv.h:106
ov-uint8.h
octave_base_scalar
Definition:
ov-base-scalar.h:42
variables.h
octave_base_matrix
Definition:
ov-base-mat.h:46
lo-utils.h
oct-hdf5.h
DEFUN
#define DEFUN(name, args_name, nargout_name, doc)
Definition:
defun.h:44
ls-utils.h
ov-base-int.cc
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
#define DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(t, n, c)
Definition:
ov-base.h:164
ov-base-int.h
ops.h
octave_base_int_scalar
Definition:
ov-base-int.h:89
lo-ieee.h
oct-lvalue.h
mx-base.h
ov-base.h
defun.h
ov-type-conv.h
quit.h
oct-obj.h
gripes.h
byte-swap.h
octave_base_int_matrix
Definition:
ov-base-int.h:43
ls-hdf5.h
Generated on Thu Jun 4 2015 23:30:18 for GNU Octave by
1.8.8