1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2004-2021 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 "uint16NDArray.h"
31 #include "mx-op-defs.h"
32 #include "intNDArray.cc"
33 
34 #include "bsxfun-defs.cc"
35 
36 template class OCTAVE_API intNDArray<octave_uint16>;
37 
38 template OCTAVE_API
39 std::ostream&
40 operator << (std::ostream& os, const intNDArray<octave_uint16>& a);
41 
42 template OCTAVE_API
43 std::istream&
44 operator >> (std::istream& is, intNDArray<octave_uint16>& a);
45 
46 NDS_CMP_OPS (uint16NDArray, octave_uint16)
47 NDS_BOOL_OPS (uint16NDArray, octave_uint16)
48 
49 SND_CMP_OPS (octave_uint16, uint16NDArray)
50 SND_BOOL_OPS (octave_uint16, uint16NDArray)
51 
52 NDND_CMP_OPS (uint16NDArray, uint16NDArray)
53 NDND_BOOL_OPS (uint16NDArray, uint16NDArray)
54 
55 MINMAX_FCNS (uint16NDArray, octave_uint16)
56 
57 BSXFUN_STDOP_DEFS_MXLOOP (uint16NDArray)
58 BSXFUN_STDREL_DEFS_MXLOOP (uint16NDArray)
59 
60 BSXFUN_OP_DEF_MXLOOP (pow, uint16NDArray, mx_inline_pow)
61 BSXFUN_POW_MIXED_MXLOOP (uint16NDArray)
62