Debian Codegraph @

external/gsl/gsl_matrix_long.h

raw symbols SCIP
1 /* matrix/gsl_matrix_long.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_MATRIX_LONG_H__
21 #define __GSL_MATRIX_LONG_H__cxx . . $ `external/gsl/gsl_matrix_long.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_vector_long.h"cxx . . $ `<file>/external/gsl/gsl_vector_long.h`/
28
29 #undef __BEGIN_DECLScxx . . $ `external/gsl/gsl_vector_long.h:35:10`!
30 #undef __END_DECLScxx . . $ `external/gsl/gsl_vector_long.h:36:10`!
31 #ifdef __cplusplus
32 # define __BEGIN_DECLS extern "C" {
33 # define __END_DECLS }
34 #else
35 # define __BEGIN_DECLScxx . . $ `external/gsl/gsl_matrix_long.h:35:10`! /* empty */
36 # define __END_DECLScxx . . $ `external/gsl/gsl_matrix_long.h:36:10`! /* empty */
37 #endif
38
39 __BEGIN_DECLScxx . . $ `external/gsl/gsl_matrix_long.h:35:10`!
40
41 typedef structcxx . . $ $anonymous_type_92640b360d959af3_0#
42 {
43 size_t size1cxx . . $ $anonymous_type_92640b360d959af3_0#size1.;
44 size_t size2cxx . . $ $anonymous_type_92640b360d959af3_0#size2.;
45 size_t tdacxx . . $ $anonymous_type_92640b360d959af3_0#tda.;
46 long * datacxx . . $ $anonymous_type_92640b360d959af3_0#data.;
47 gsl_block_longcxx . . $ gsl_block_long# * blockcxx . . $ $anonymous_type_92640b360d959af3_0#block.;
48 int ownercxx . . $ $anonymous_type_92640b360d959af3_0#owner.;
49 } gsl_matrix_longcxx . . $ gsl_matrix_long#;
50
51 typedef structcxx . . $ $anonymous_type_92640b360d959af3_1#
52 {
53 gsl_matrix_longcxx . . $ gsl_matrix_long# matrixcxx . . $ $anonymous_type_92640b360d959af3_1#matrix.;
54 } _gsl_matrix_long_viewcxx . . $ _gsl_matrix_long_view#;
55
56 typedef _gsl_matrix_long_viewcxx . . $ _gsl_matrix_long_view# gsl_matrix_long_viewcxx . . $ gsl_matrix_long_view#;
57
58 typedef structcxx . . $ $anonymous_type_92640b360d959af3_2#
59 {
60 gsl_matrix_longcxx . . $ gsl_matrix_long# matrixcxx . . $ $anonymous_type_92640b360d959af3_2#matrix.;
61 } _gsl_matrix_long_const_viewcxx . . $ _gsl_matrix_long_const_view#;
62
63 typedef const _gsl_matrix_long_const_viewcxx . . $ _gsl_matrix_long_const_view# gsl_matrix_long_const_viewcxx . . $ gsl_matrix_long_const_view#;
64
65 /* Allocation */
66
67 gsl_matrix_longcxx . . $ gsl_matrix_long# *
68 gsl_matrix_long_alloccxx . . $ gsl_matrix_long_alloc(c3019551463934d). (const size_t n1, const size_t n2);
69
70 gsl_matrix_longcxx . . $ gsl_matrix_long# *
71 gsl_matrix_long_calloccxx . . $ gsl_matrix_long_calloc(c3019551463934d). (const size_t n1, const size_t n2);
72
73 gsl_matrix_longcxx . . $ gsl_matrix_long# *
74 gsl_matrix_long_alloc_from_blockcxx . . $ gsl_matrix_long_alloc_from_block(4315eaca12c4b42e). (gsl_block_longcxx . . $ gsl_block_long# * b,
75 const size_t offset,
76 const size_t n1,
77 const size_t n2,
78 const size_t d2);
79
80 gsl_matrix_longcxx . . $ gsl_matrix_long# *
81 gsl_matrix_long_alloc_from_matrixcxx . . $ gsl_matrix_long_alloc_from_matrix(2068f2b0719f92c1). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m,
82 const size_t k1,
83 const size_t k2,
84 const size_t n1,
85 const size_t n2);
86
87 gsl_vector_longcxx . . $ gsl_vector_long# *
88 gsl_vector_long_alloc_row_from_matrixcxx . . $ gsl_vector_long_alloc_row_from_matrix(63e44ad6c7b4d1c4). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m,
89 const size_t i);
90
91 gsl_vector_longcxx . . $ gsl_vector_long# *
92 gsl_vector_long_alloc_col_from_matrixcxx . . $ gsl_vector_long_alloc_col_from_matrix(63e44ad6c7b4d1c4). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m,
93 const size_t j);
94
95 void gsl_matrix_long_freecxx . . $ gsl_matrix_long_free(204ee400f258703d). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
96
97 /* Views */
98
99 _gsl_matrix_long_viewcxx . . $ _gsl_matrix_long_view#
100 gsl_matrix_long_submatrixcxx . . $ gsl_matrix_long_submatrix(6304f338d61a0864). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m,
101 const size_t i, const size_t j,
102 const size_t n1, const size_t n2);
103
104 _gsl_vector_long_viewcxx . . $ _gsl_vector_long_view#
105 gsl_matrix_long_rowcxx . . $ gsl_matrix_long_row(20135d0ebb527b52). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i);
106
107 _gsl_vector_long_viewcxx . . $ _gsl_vector_long_view#
108 gsl_matrix_long_columncxx . . $ gsl_matrix_long_column(20135d0ebb527b52). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t j);
109
110 _gsl_vector_long_viewcxx . . $ _gsl_vector_long_view#
111 gsl_matrix_long_diagonalcxx . . $ gsl_matrix_long_diagonal(e94b51ebbd806f1a). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
112
113 _gsl_vector_long_viewcxx . . $ _gsl_vector_long_view#
114 gsl_matrix_long_subdiagonalcxx . . $ gsl_matrix_long_subdiagonal(20135d0ebb527b52). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t k);
115
116 _gsl_vector_long_viewcxx . . $ _gsl_vector_long_view#
117 gsl_matrix_long_superdiagonalcxx . . $ gsl_matrix_long_superdiagonal(20135d0ebb527b52). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t k);
118
119 _gsl_vector_long_viewcxx . . $ _gsl_vector_long_view#
120 gsl_matrix_long_subrowcxx . . $ gsl_matrix_long_subrow(376526cf2eacf7bd). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i,
121 const size_t offset, const size_t n);
122
123 _gsl_vector_long_viewcxx . . $ _gsl_vector_long_view#
124 gsl_matrix_long_subcolumncxx . . $ gsl_matrix_long_subcolumn(376526cf2eacf7bd). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t j,
125 const size_t offset, const size_t n);
126
127 _gsl_matrix_long_viewcxx . . $ _gsl_matrix_long_view#
128 gsl_matrix_long_view_arraycxx . . $ gsl_matrix_long_view_array(8a060ae6fd533405). (long * base,
129 const size_t n1,
130 const size_t n2);
131
132 _gsl_matrix_long_viewcxx . . $ _gsl_matrix_long_view#
133 gsl_matrix_long_view_array_with_tdacxx . . $ gsl_matrix_long_view_array_with_tda(2df23b5e3b755295). (long * base,
134 const size_t n1,
135 const size_t n2,
136 const size_t tda);
137
138
139 _gsl_matrix_long_viewcxx . . $ _gsl_matrix_long_view#
140 gsl_matrix_long_view_vectorcxx . . $ gsl_matrix_long_view_vector(38bfd34e001f7ad8). (gsl_vector_longcxx . . $ gsl_vector_long# * v,
141 const size_t n1,
142 const size_t n2);
143
144 _gsl_matrix_long_viewcxx . . $ _gsl_matrix_long_view#
145 gsl_matrix_long_view_vector_with_tdacxx . . $ gsl_matrix_long_view_vector_with_tda(871828e0a8be206a). (gsl_vector_longcxx . . $ gsl_vector_long# * v,
146 const size_t n1,
147 const size_t n2,
148 const size_t tda);
149
150
151 _gsl_matrix_long_const_viewcxx . . $ _gsl_matrix_long_const_view#
152 gsl_matrix_long_const_submatrixcxx . . $ gsl_matrix_long_const_submatrix(16cf007cf8d4517d). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m,
153 const size_t i, const size_t j,
154 const size_t n1, const size_t n2);
155
156 _gsl_vector_long_const_viewcxx . . $ _gsl_vector_long_const_view#
157 gsl_matrix_long_const_rowcxx . . $ gsl_matrix_long_const_row(b6f7d71dc01af544). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m,
158 const size_t i);
159
160 _gsl_vector_long_const_viewcxx . . $ _gsl_vector_long_const_view#
161 gsl_matrix_long_const_columncxx . . $ gsl_matrix_long_const_column(b6f7d71dc01af544). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m,
162 const size_t j);
163
164 _gsl_vector_long_const_viewcxx . . $ _gsl_vector_long_const_view#
165 gsl_matrix_long_const_diagonalcxx . . $ gsl_matrix_long_const_diagonal(4b8f7bcaa463bdcd). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
166
167 _gsl_vector_long_const_viewcxx . . $ _gsl_vector_long_const_view#
168 gsl_matrix_long_const_subdiagonalcxx . . $ gsl_matrix_long_const_subdiagonal(b6f7d71dc01af544). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m,
169 const size_t k);
170
171 _gsl_vector_long_const_viewcxx . . $ _gsl_vector_long_const_view#
172 gsl_matrix_long_const_superdiagonalcxx . . $ gsl_matrix_long_const_superdiagonal(b6f7d71dc01af544). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m,
173 const size_t k);
174
175 _gsl_vector_long_const_viewcxx . . $ _gsl_vector_long_const_view#
176 gsl_matrix_long_const_subrowcxx . . $ gsl_matrix_long_const_subrow(aa1c303bc076dfb). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i,
177 const size_t offset, const size_t n);
178
179 _gsl_vector_long_const_viewcxx . . $ _gsl_vector_long_const_view#
180 gsl_matrix_long_const_subcolumncxx . . $ gsl_matrix_long_const_subcolumn(aa1c303bc076dfb). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t j,
181 const size_t offset, const size_t n);
182
183 _gsl_matrix_long_const_viewcxx . . $ _gsl_matrix_long_const_view#
184 gsl_matrix_long_const_view_arraycxx . . $ gsl_matrix_long_const_view_array(cbf8bee4fd80b82a). (const long * base,
185 const size_t n1,
186 const size_t n2);
187
188 _gsl_matrix_long_const_viewcxx . . $ _gsl_matrix_long_const_view#
189 gsl_matrix_long_const_view_array_with_tdacxx . . $ gsl_matrix_long_const_view_array_with_tda(f5c8b8f3bbdd8b3e). (const long * base,
190 const size_t n1,
191 const size_t n2,
192 const size_t tda);
193
194 _gsl_matrix_long_const_viewcxx . . $ _gsl_matrix_long_const_view#
195 gsl_matrix_long_const_view_vectorcxx . . $ gsl_matrix_long_const_view_vector(30c6992946654367). (const gsl_vector_longcxx . . $ gsl_vector_long# * v,
196 const size_t n1,
197 const size_t n2);
198
199 _gsl_matrix_long_const_viewcxx . . $ _gsl_matrix_long_const_view#
200 gsl_matrix_long_const_view_vector_with_tdacxx . . $ gsl_matrix_long_const_view_vector_with_tda(446db715958ef5b). (const gsl_vector_longcxx . . $ gsl_vector_long# * v,
201 const size_t n1,
202 const size_t n2,
203 const size_t tda);
204
205 /* Operations */
206
207 long gsl_matrix_long_getcxx . . $ gsl_matrix_long_get(21895357905ba8de).(const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i, const size_t j);
208 void gsl_matrix_long_setcxx . . $ gsl_matrix_long_set(58cb0c2cc0df0e1e).(gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i, const size_t j, const long x);
209
210 long * gsl_matrix_long_ptrcxx . . $ gsl_matrix_long_ptr(a98ba14bbe2fcb09).(gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i, const size_t j);
211 const long * gsl_matrix_long_const_ptrcxx . . $ gsl_matrix_long_const_ptr(6869088b4bc90507).(const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i, const size_t j);
212
213 void gsl_matrix_long_set_zerocxx . . $ gsl_matrix_long_set_zero(204ee400f258703d). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
214 void gsl_matrix_long_set_identitycxx . . $ gsl_matrix_long_set_identity(204ee400f258703d). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
215 void gsl_matrix_long_set_allcxx . . $ gsl_matrix_long_set_all(bc92cd3287be4033). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m, long x);
216
217 int gsl_matrix_long_freadcxx . . $ gsl_matrix_long_fread(cc108ad1d37f28db). (FILEcxx . . $ FILE# * stream, gsl_matrix_longcxx . . $ gsl_matrix_long# * m) ;
218 int gsl_matrix_long_fwritecxx . . $ gsl_matrix_long_fwrite(6dd6af87c2823aeb). (FILEcxx . . $ FILE# * stream, const gsl_matrix_longcxx . . $ gsl_matrix_long# * m) ;
219 int gsl_matrix_long_fscanfcxx . . $ gsl_matrix_long_fscanf(cc108ad1d37f28db). (FILEcxx . . $ FILE# * stream, gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
220 int gsl_matrix_long_fprintfcxx . . $ gsl_matrix_long_fprintf(e0ce2a79f24ec75a). (FILEcxx . . $ FILE# * stream, const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const char * format);
221
222 int gsl_matrix_long_memcpycxx . . $ gsl_matrix_long_memcpy(3e1589a3a2a87c82).(gsl_matrix_longcxx . . $ gsl_matrix_long# * dest, const gsl_matrix_longcxx . . $ gsl_matrix_long# * src);
223 int gsl_matrix_long_swapcxx . . $ gsl_matrix_long_swap(2750364d3e548649).(gsl_matrix_longcxx . . $ gsl_matrix_long# * m1, gsl_matrix_longcxx . . $ gsl_matrix_long# * m2);
224
225 int gsl_matrix_long_swap_rowscxx . . $ gsl_matrix_long_swap_rows(57db16e51c2942cb).(gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i, const size_t j);
226 int gsl_matrix_long_swap_columnscxx . . $ gsl_matrix_long_swap_columns(57db16e51c2942cb).(gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i, const size_t j);
227 int gsl_matrix_long_swap_rowcolcxx . . $ gsl_matrix_long_swap_rowcol(57db16e51c2942cb).(gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i, const size_t j);
228 int gsl_matrix_long_transposecxx . . $ gsl_matrix_long_transpose(454827c744e8dc53). (gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
229 int gsl_matrix_long_transpose_memcpycxx . . $ gsl_matrix_long_transpose_memcpy(3e1589a3a2a87c82). (gsl_matrix_longcxx . . $ gsl_matrix_long# * dest, const gsl_matrix_longcxx . . $ gsl_matrix_long# * src);
230
231 long gsl_matrix_long_maxcxx . . $ gsl_matrix_long_max(faa4cb2778591b23). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
232 long gsl_matrix_long_mincxx . . $ gsl_matrix_long_min(faa4cb2778591b23). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
233 void gsl_matrix_long_minmaxcxx . . $ gsl_matrix_long_minmax(6224c7ec7e80efef). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, long * min_out, long * max_out);
234
235 void gsl_matrix_long_max_indexcxx . . $ gsl_matrix_long_max_index(df741e7e9170ca1). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, size_t * imax, size_t *jmax);
236 void gsl_matrix_long_min_indexcxx . . $ gsl_matrix_long_min_index(df741e7e9170ca1). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, size_t * imin, size_t *jmin);
237 void gsl_matrix_long_minmax_indexcxx . . $ gsl_matrix_long_minmax_index(eea7f26d7f1aafbb). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, size_t * imin, size_t * jmin, size_t * imax, size_t * jmax);
238
239 int gsl_matrix_long_isnullcxx . . $ gsl_matrix_long_isnull(70a6f58b899c7b5e). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
240 int gsl_matrix_long_isposcxx . . $ gsl_matrix_long_ispos(70a6f58b899c7b5e). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
241 int gsl_matrix_long_isnegcxx . . $ gsl_matrix_long_isneg(70a6f58b899c7b5e). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
242 int gsl_matrix_long_isnonnegcxx . . $ gsl_matrix_long_isnonneg(70a6f58b899c7b5e). (const gsl_matrix_longcxx . . $ gsl_matrix_long# * m);
243
244 int gsl_matrix_long_addcxx . . $ gsl_matrix_long_add(3e1589a3a2a87c82). (gsl_matrix_longcxx . . $ gsl_matrix_long# * a, const gsl_matrix_longcxx . . $ gsl_matrix_long# * b);
245 int gsl_matrix_long_subcxx . . $ gsl_matrix_long_sub(3e1589a3a2a87c82). (gsl_matrix_longcxx . . $ gsl_matrix_long# * a, const gsl_matrix_longcxx . . $ gsl_matrix_long# * b);
246 int gsl_matrix_long_mul_elementscxx . . $ gsl_matrix_long_mul_elements(3e1589a3a2a87c82). (gsl_matrix_longcxx . . $ gsl_matrix_long# * a, const gsl_matrix_longcxx . . $ gsl_matrix_long# * b);
247 int gsl_matrix_long_div_elementscxx . . $ gsl_matrix_long_div_elements(3e1589a3a2a87c82). (gsl_matrix_longcxx . . $ gsl_matrix_long# * a, const gsl_matrix_longcxx . . $ gsl_matrix_long# * b);
248 int gsl_matrix_long_scalecxx . . $ gsl_matrix_long_scale(eea85e40a18d0384). (gsl_matrix_longcxx . . $ gsl_matrix_long# * a, const double x);
249 int gsl_matrix_long_add_constantcxx . . $ gsl_matrix_long_add_constant(eea85e40a18d0384). (gsl_matrix_longcxx . . $ gsl_matrix_long# * a, const double x);
250 int gsl_matrix_long_add_diagonalcxx . . $ gsl_matrix_long_add_diagonal(eea85e40a18d0384). (gsl_matrix_longcxx . . $ gsl_matrix_long# * a, const double x);
251
252 /***********************************************************************/
253 /* The functions below are obsolete */
254 /***********************************************************************/
255 int gsl_matrix_long_get_rowcxx . . $ gsl_matrix_long_get_row(d45cd639f967c504).(gsl_vector_longcxx . . $ gsl_vector_long# * v, const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i);
256 int gsl_matrix_long_get_colcxx . . $ gsl_matrix_long_get_col(d45cd639f967c504).(gsl_vector_longcxx . . $ gsl_vector_long# * v, const gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t j);
257 int gsl_matrix_long_set_rowcxx . . $ gsl_matrix_long_set_row(5c990d681fc73390).(gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t i, const gsl_vector_longcxx . . $ gsl_vector_long# * v);
258 int gsl_matrix_long_set_colcxx . . $ gsl_matrix_long_set_col(5c990d681fc73390).(gsl_matrix_longcxx . . $ gsl_matrix_long# * m, const size_t j, const gsl_vector_longcxx . . $ gsl_vector_long# * v);
259
260 /* inline functions if you are using GCC */
261
262 #ifdef HAVE_INLINE
263 extern inline
264 long
265 gsl_matrix_long_get(const gsl_matrix_long * m, const size_t i, const size_t j)
266 {
267 #if GSL_RANGE_CHECK
268 if (i >= m->size1)
269 {
270 GSL_ERROR_VAL("first index out of range", GSL_EINVAL, 0) ;
271 }
272 else if (j >= m->size2)
273 {
274 GSL_ERROR_VAL("second index out of range", GSL_EINVAL, 0) ;
275 }
276 #endif
277 return m->data[i * m->tda + j] ;
278 }
279
280 extern inline
281 void
282 gsl_matrix_long_set(gsl_matrix_long * m, const size_t i, const size_t j, const long x)
283 {
284 #if GSL_RANGE_CHECK
285 if (i >= m->size1)
286 {
287 GSL_ERROR_VOID("first index out of range", GSL_EINVAL) ;
288 }
289 else if (j >= m->size2)
290 {
291 GSL_ERROR_VOID("second index out of range", GSL_EINVAL) ;
292 }
293 #endif
294 m->data[i * m->tda + j] = x ;
295 }
296
297 extern inline
298 long *
299 gsl_matrix_long_ptr(gsl_matrix_long * m, const size_t i, const size_t j)
300 {
301 #if GSL_RANGE_CHECK
302 if (i >= m->size1)
303 {
304 GSL_ERROR_NULL("first index out of range", GSL_EINVAL) ;
305 }
306 else if (j >= m->size2)
307 {
308 GSL_ERROR_NULL("second index out of range", GSL_EINVAL) ;
309 }
310 #endif
311 return (long *) (m->data + (i * m->tda + j)) ;
312 }
313
314 extern inline
315 const long *
316 gsl_matrix_long_const_ptr(const gsl_matrix_long * m, const size_t i, const size_t j)
317 {
318 #if GSL_RANGE_CHECK
319 if (i >= m->size1)
320 {
321 GSL_ERROR_NULL("first index out of range", GSL_EINVAL) ;
322 }
323 else if (j >= m->size2)
324 {
325 GSL_ERROR_NULL("second index out of range", GSL_EINVAL) ;
326 }
327 #endif
328 return (const long *) (m->data + (i * m->tda + j)) ;
329 }
330
331 #endif
332
333 __END_DECLScxx . . $ `external/gsl/gsl_matrix_long.h:36:10`!
334
335 #endif /* __GSL_MATRIX_LONG_H__ */