Debian Codegraph @

external/gsl/gsl_vector_ushort.h

raw symbols SCIP
1 /* vector/gsl_vector_ushort.h
2 *
3 * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef __GSL_VECTOR_USHORT_H__
21 #define __GSL_VECTOR_USHORT_H__cxx . . $ `external/gsl/gsl_vector_ushort.h:21:9`!
22
23 #include <stdlib.h>
24 #include "gsl_types.h"cxx . . $ `<file>/external/gsl/gsl_types.h`/
25 #include "gsl_errno.h"cxx . . $ `<file>/external/gsl/gsl_errno.h`/
26 #include "gsl_check_range.h"cxx . . $ `<file>/external/gsl/gsl_check_range.h`/
27 #include "gsl_block_ushort.h"cxx . . $ `<file>/external/gsl/gsl_block_ushort.h`/
28
29 #undef __BEGIN_DECLScxx . . $ `external/gsl/gsl_block_ushort.h:32:10`!
30 #undef __END_DECLScxx . . $ `external/gsl/gsl_block_ushort.h:33:10`!
31 #ifdef __cplusplus
32 # define __BEGIN_DECLS extern "C" {
33 # define __END_DECLS }
34 #else
35 # define __BEGIN_DECLScxx . . $ `external/gsl/gsl_vector_ushort.h:35:10`! /* empty */
36 # define __END_DECLScxx . . $ `external/gsl/gsl_vector_ushort.h:36:10`! /* empty */
37 #endif
38
39 __BEGIN_DECLScxx . . $ `external/gsl/gsl_vector_ushort.h:35:10`!
40
41 typedef structcxx . . $ $anonymous_type_fe107a2a8c6776b7_0#
42 {
43 size_t sizecxx . . $ $anonymous_type_fe107a2a8c6776b7_0#size.;
44 size_t stridecxx . . $ $anonymous_type_fe107a2a8c6776b7_0#stride.;
45 unsigned short *datacxx . . $ $anonymous_type_fe107a2a8c6776b7_0#data.;
46 gsl_block_ushortcxx . . $ gsl_block_ushort# *blockcxx . . $ $anonymous_type_fe107a2a8c6776b7_0#block.;
47 int ownercxx . . $ $anonymous_type_fe107a2a8c6776b7_0#owner.;
48 }
49 gsl_vector_ushortcxx . . $ gsl_vector_ushort#;
50
51 typedef structcxx . . $ $anonymous_type_fe107a2a8c6776b7_1#
52 {
53 gsl_vector_ushortcxx . . $ gsl_vector_ushort# vectorcxx . . $ $anonymous_type_fe107a2a8c6776b7_1#vector.;
54 } _gsl_vector_ushort_viewcxx . . $ _gsl_vector_ushort_view#;
55
56 typedef _gsl_vector_ushort_viewcxx . . $ _gsl_vector_ushort_view# gsl_vector_ushort_viewcxx . . $ gsl_vector_ushort_view#;
57
58 typedef structcxx . . $ $anonymous_type_fe107a2a8c6776b7_2#
59 {
60 gsl_vector_ushortcxx . . $ gsl_vector_ushort# vectorcxx . . $ $anonymous_type_fe107a2a8c6776b7_2#vector.;
61 } _gsl_vector_ushort_const_viewcxx . . $ _gsl_vector_ushort_const_view#;
62
63 typedef const _gsl_vector_ushort_const_viewcxx . . $ _gsl_vector_ushort_const_view# gsl_vector_ushort_const_viewcxx . . $ gsl_vector_ushort_const_view#;
64
65
66 /* Allocation */
67
68 gsl_vector_ushortcxx . . $ gsl_vector_ushort# *gsl_vector_ushort_alloccxx . . $ gsl_vector_ushort_alloc(437c417d1dda174a). (const size_t n);
69 gsl_vector_ushortcxx . . $ gsl_vector_ushort# *gsl_vector_ushort_calloccxx . . $ gsl_vector_ushort_calloc(437c417d1dda174a). (const size_t n);
70
71 gsl_vector_ushortcxx . . $ gsl_vector_ushort# *gsl_vector_ushort_alloc_from_blockcxx . . $ gsl_vector_ushort_alloc_from_block(a9afddda1718ef71). (gsl_block_ushortcxx . . $ gsl_block_ushort# * b,
72 const size_t offset,
73 const size_t n,
74 const size_t stride);
75
76 gsl_vector_ushortcxx . . $ gsl_vector_ushort# *gsl_vector_ushort_alloc_from_vectorcxx . . $ gsl_vector_ushort_alloc_from_vector(a64c2804c0ca6522). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v,
77 const size_t offset,
78 const size_t n,
79 const size_t stride);
80
81 void gsl_vector_ushort_freecxx . . $ gsl_vector_ushort_free(72e415a06c7d0845). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
82
83 /* Views */
84
85 _gsl_vector_ushort_viewcxx . . $ _gsl_vector_ushort_view#
86 gsl_vector_ushort_view_arraycxx . . $ gsl_vector_ushort_view_array(9fc64a5d40ab19b9). (unsigned short *v, size_t n);
87
88 _gsl_vector_ushort_viewcxx . . $ _gsl_vector_ushort_view#
89 gsl_vector_ushort_view_array_with_stridecxx . . $ gsl_vector_ushort_view_array_with_stride(832ae6418749bf86). (unsigned short *base,
90 size_t stride,
91 size_t n);
92
93 _gsl_vector_ushort_const_viewcxx . . $ _gsl_vector_ushort_const_view#
94 gsl_vector_ushort_const_view_arraycxx . . $ gsl_vector_ushort_const_view_array(25b65e0dcaa28222). (const unsigned short *v, size_t n);
95
96 _gsl_vector_ushort_const_viewcxx . . $ _gsl_vector_ushort_const_view#
97 gsl_vector_ushort_const_view_array_with_stridecxx . . $ gsl_vector_ushort_const_view_array_with_stride(6acc959d2090e651). (const unsigned short *base,
98 size_t stride,
99 size_t n);
100
101 _gsl_vector_ushort_viewcxx . . $ _gsl_vector_ushort_view#
102 gsl_vector_ushort_subvectorcxx . . $ gsl_vector_ushort_subvector(dde1df889cc4b995). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# *v,
103 size_t i,
104 size_t n);
105
106 _gsl_vector_ushort_viewcxx . . $ _gsl_vector_ushort_view#
107 gsl_vector_ushort_subvector_with_stridecxx . . $ gsl_vector_ushort_subvector_with_stride(4fcd0a78decd921d). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# *v,
108 size_t i,
109 size_t stride,
110 size_t n);
111
112 _gsl_vector_ushort_const_viewcxx . . $ _gsl_vector_ushort_const_view#
113 gsl_vector_ushort_const_subvectorcxx . . $ gsl_vector_ushort_const_subvector(3d9fbac40316ea88). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# *v,
114 size_t i,
115 size_t n);
116
117 _gsl_vector_ushort_const_viewcxx . . $ _gsl_vector_ushort_const_view#
118 gsl_vector_ushort_const_subvector_with_stridecxx . . $ gsl_vector_ushort_const_subvector_with_stride(e482d651d07c4d3a). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# *v,
119 size_t i,
120 size_t stride,
121 size_t n);
122
123 /* Operations */
124
125 unsigned short gsl_vector_ushort_getcxx . . $ gsl_vector_ushort_get(4d788cd54810c8cd). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v, const size_t i);
126 void gsl_vector_ushort_setcxx . . $ gsl_vector_ushort_set(33adbf64ee7b2df5). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v, const size_t i, unsigned short x);
127
128 unsigned short *gsl_vector_ushort_ptrcxx . . $ gsl_vector_ushort_ptr(6b7b7dc84eb4dcc4). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v, const size_t i);
129 const unsigned short *gsl_vector_ushort_const_ptrcxx . . $ gsl_vector_ushort_const_ptr(818eb561c09bc5cc). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v, const size_t i);
130
131 void gsl_vector_ushort_set_zerocxx . . $ gsl_vector_ushort_set_zero(72e415a06c7d0845). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
132 void gsl_vector_ushort_set_allcxx . . $ gsl_vector_ushort_set_all(15d04d9fab91f1bb). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v, unsigned short x);
133 int gsl_vector_ushort_set_basiscxx . . $ gsl_vector_ushort_set_basis(8e9c2f6b7f52cf7f). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v, size_t i);
134
135 int gsl_vector_ushort_freadcxx . . $ gsl_vector_ushort_fread(4c69d28bddee7a4). (FILEcxx . . $ FILE# * stream, gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
136 int gsl_vector_ushort_fwritecxx . . $ gsl_vector_ushort_fwrite(28dd7514c16b8908). (FILEcxx . . $ FILE# * stream, const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
137 int gsl_vector_ushort_fscanfcxx . . $ gsl_vector_ushort_fscanf(4c69d28bddee7a4). (FILEcxx . . $ FILE# * stream, gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
138 int gsl_vector_ushort_fprintfcxx . . $ gsl_vector_ushort_fprintf(42c45e6cd8a5ca3e). (FILEcxx . . $ FILE# * stream, const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v,
139 const char *format);
140
141 int gsl_vector_ushort_memcpycxx . . $ gsl_vector_ushort_memcpy(12fd45f57f60b3b7). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * dest, const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * src);
142
143 int gsl_vector_ushort_reversecxx . . $ gsl_vector_ushort_reverse(93664a2ec74e0cc6). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
144
145 int gsl_vector_ushort_swapcxx . . $ gsl_vector_ushort_swap(57e2342dff72e110). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v, gsl_vector_ushortcxx . . $ gsl_vector_ushort# * w);
146 int gsl_vector_ushort_swap_elementscxx . . $ gsl_vector_ushort_swap_elements(d30d6608dc5fc7df). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v, const size_t i, const size_t j);
147
148 unsigned short gsl_vector_ushort_maxcxx . . $ gsl_vector_ushort_max(37de779007b11512). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
149 unsigned short gsl_vector_ushort_mincxx . . $ gsl_vector_ushort_min(37de779007b11512). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
150 void gsl_vector_ushort_minmaxcxx . . $ gsl_vector_ushort_minmax(a48f3e083dbde42e). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v, unsigned short * min_out, unsigned short * max_out);
151
152 size_t gsl_vector_ushort_max_indexcxx . . $ gsl_vector_ushort_max_index(94708b280e5f9fed). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
153 size_t gsl_vector_ushort_min_indexcxx . . $ gsl_vector_ushort_min_index(94708b280e5f9fed). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
154 void gsl_vector_ushort_minmax_indexcxx . . $ gsl_vector_ushort_minmax_index(688245db5260334f). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v, size_t * imin, size_t * imax);
155
156 int gsl_vector_ushort_addcxx . . $ gsl_vector_ushort_add(12fd45f57f60b3b7). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * a, const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * b);
157 int gsl_vector_ushort_subcxx . . $ gsl_vector_ushort_sub(12fd45f57f60b3b7). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * a, const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * b);
158 int gsl_vector_ushort_mulcxx . . $ gsl_vector_ushort_mul(12fd45f57f60b3b7). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * a, const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * b);
159 int gsl_vector_ushort_divcxx . . $ gsl_vector_ushort_div(12fd45f57f60b3b7). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * a, const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * b);
160 int gsl_vector_ushort_scalecxx . . $ gsl_vector_ushort_scale(b0b2f9f633a50a80). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * a, const double x);
161 int gsl_vector_ushort_add_constantcxx . . $ gsl_vector_ushort_add_constant(b0b2f9f633a50a80). (gsl_vector_ushortcxx . . $ gsl_vector_ushort# * a, const double x);
162
163 int gsl_vector_ushort_isnullcxx . . $ gsl_vector_ushort_isnull(f2eb914e59b2f2b4). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
164 int gsl_vector_ushort_isposcxx . . $ gsl_vector_ushort_ispos(f2eb914e59b2f2b4). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
165 int gsl_vector_ushort_isnegcxx . . $ gsl_vector_ushort_isneg(f2eb914e59b2f2b4). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
166 int gsl_vector_ushort_isnonnegcxx . . $ gsl_vector_ushort_isnonneg(f2eb914e59b2f2b4). (const gsl_vector_ushortcxx . . $ gsl_vector_ushort# * v);
167
168 #ifdef HAVE_INLINE
169
170 extern inline
171 unsigned short
172 gsl_vector_ushort_get (const gsl_vector_ushort * v, const size_t i)
173 {
174 #if GSL_RANGE_CHECK
175 if (i >= v->size)
176 {
177 GSL_ERROR_VAL ("index out of range", GSL_EINVAL, 0);
178 }
179 #endif
180 return v->data[i * v->stride];
181 }
182
183 extern inline
184 void
185 gsl_vector_ushort_set (gsl_vector_ushort * v, const size_t i, unsigned short x)
186 {
187 #if GSL_RANGE_CHECK
188 if (i >= v->size)
189 {
190 GSL_ERROR_VOID ("index out of range", GSL_EINVAL);
191 }
192 #endif
193 v->data[i * v->stride] = x;
194 }
195
196 extern inline
197 unsigned short *
198 gsl_vector_ushort_ptr (gsl_vector_ushort * v, const size_t i)
199 {
200 #if GSL_RANGE_CHECK
201 if (i >= v->size)
202 {
203 GSL_ERROR_NULL ("index out of range", GSL_EINVAL);
204 }
205 #endif
206 return (unsigned short *) (v->data + i * v->stride);
207 }
208
209 extern inline
210 const unsigned short *
211 gsl_vector_ushort_const_ptr (const gsl_vector_ushort * v, const size_t i)
212 {
213 #if GSL_RANGE_CHECK
214 if (i >= v->size)
215 {
216 GSL_ERROR_NULL ("index out of range", GSL_EINVAL);
217 }
218 #endif
219 return (const unsigned short *) (v->data + i * v->stride);
220 }
221
222
223 #endif /* HAVE_INLINE */
224
225 __END_DECLScxx . . $ `external/gsl/gsl_vector_ushort.h:36:10`!
226
227 #endif /* __GSL_VECTOR_USHORT_H__ */
228
229