| 1 | /* vector/gsl_vector_complex_long_double.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_COMPLEX_LONG_DOUBLE_H__ |
| 21 | #define __GSL_VECTOR_COMPLEX_LONG_DOUBLE_H__cxx . . $ `external/gsl/gsl_vector_complex_long_double.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_complex.h"cxx . . $ `<file>/external/gsl/gsl_complex.h`/ |
| 27 | #include "gsl_check_range.h"cxx . . $ `<file>/external/gsl/gsl_check_range.h`/ |
| 28 | #include "gsl_vector_long_double.h"cxx . . $ `<file>/external/gsl/gsl_vector_long_double.h`/ |
| 29 | #include "gsl_vector_complex.h"cxx . . $ `<file>/external/gsl/gsl_vector_complex.h`/ |
| 30 | #include "gsl_block_complex_long_double.h"cxx . . $ `<file>/external/gsl/gsl_block_complex_long_double.h`/ |
| 31 | |
| 32 | #undef __BEGIN_DECLScxx . . $ `external/gsl/gsl_block_complex_long_double.h:32:10`! |
| 33 | #undef __END_DECLScxx . . $ `external/gsl/gsl_block_complex_long_double.h:33:10`! |
| 34 | #ifdef __cplusplus |
| 35 | # define __BEGIN_DECLS extern "C" { |
| 36 | # define __END_DECLS } |
| 37 | #else |
| 38 | # define __BEGIN_DECLScxx . . $ `external/gsl/gsl_vector_complex_long_double.h:38:10`! /* empty */ |
| 39 | # define __END_DECLScxx . . $ `external/gsl/gsl_vector_complex_long_double.h:39:10`! /* empty */ |
| 40 | #endif |
| 41 | |
| 42 | __BEGIN_DECLScxx . . $ `external/gsl/gsl_vector_complex_long_double.h:38:10`! |
| 43 | |
| 44 | typedef structcxx . . $ $anonymous_type_652b67a796d50cb3_0# |
| 45 | { |
| 46 | size_tcxx . . $ size_t# sizecxx . . $ $anonymous_type_652b67a796d50cb3_0#size.; |
| 47 | size_tcxx . . $ size_t# stridecxx . . $ $anonymous_type_652b67a796d50cb3_0#stride.; |
| 48 | long double *datacxx . . $ $anonymous_type_652b67a796d50cb3_0#data.; |
| 49 | gsl_block_complex_long_doublecxx . . $ gsl_block_complex_long_double# *blockcxx . . $ $anonymous_type_652b67a796d50cb3_0#block.; |
| 50 | int ownercxx . . $ $anonymous_type_652b67a796d50cb3_0#owner.; |
| 51 | } gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double#; |
| 52 | |
| 53 | typedef structcxx . . $ $anonymous_type_652b67a796d50cb3_1# |
| 54 | { |
| 55 | gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# vectorcxx . . $ $anonymous_type_652b67a796d50cb3_1#vector.; |
| 56 | } _gsl_vector_complex_long_double_viewcxx . . $ _gsl_vector_complex_long_double_view#; |
| 57 | |
| 58 | typedef _gsl_vector_complex_long_double_viewcxx . . $ _gsl_vector_complex_long_double_view# gsl_vector_complex_long_double_viewcxx . . $ gsl_vector_complex_long_double_view#; |
| 59 | |
| 60 | typedef structcxx . . $ $anonymous_type_652b67a796d50cb3_2# |
| 61 | { |
| 62 | gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# vectorcxx . . $ $anonymous_type_652b67a796d50cb3_2#vector.; |
| 63 | } _gsl_vector_complex_long_double_const_viewcxx . . $ _gsl_vector_complex_long_double_const_view#; |
| 64 | |
| 65 | typedef const _gsl_vector_complex_long_double_const_viewcxx . . $ _gsl_vector_complex_long_double_const_view# gsl_vector_complex_long_double_const_viewcxx . . $ gsl_vector_complex_long_double_const_view#; |
| 66 | |
| 67 | /* Allocation */ |
| 68 | |
| 69 | gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# *gsl_vector_complex_long_double_alloccxx . . $ gsl_vector_complex_long_double_alloc(dbbb7519737d8350). (const size_tcxx . . $ size_t# n); |
| 70 | gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# *gsl_vector_complex_long_double_calloccxx . . $ gsl_vector_complex_long_double_calloc(dbbb7519737d8350). (const size_tcxx . . $ size_t# n); |
| 71 | |
| 72 | gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * |
| 73 | gsl_vector_complex_long_double_alloc_from_blockcxx . . $ gsl_vector_complex_long_double_alloc_from_block(4cd38f806768c62c). (gsl_block_complex_long_doublecxx . . $ gsl_block_complex_long_double# * b, |
| 74 | const size_tcxx . . $ size_t# offset, |
| 75 | const size_tcxx . . $ size_t# n, |
| 76 | const size_tcxx . . $ size_t# stride); |
| 77 | |
| 78 | gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * |
| 79 | gsl_vector_complex_long_double_alloc_from_vectorcxx . . $ gsl_vector_complex_long_double_alloc_from_vector(f53c761f48b948b9). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v, |
| 80 | const size_tcxx . . $ size_t# offset, |
| 81 | const size_tcxx . . $ size_t# n, |
| 82 | const size_tcxx . . $ size_t# stride); |
| 83 | |
| 84 | void gsl_vector_complex_long_double_freecxx . . $ gsl_vector_complex_long_double_free(8e460e7eb39be101). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v); |
| 85 | |
| 86 | /* Views */ |
| 87 | |
| 88 | _gsl_vector_complex_long_double_viewcxx . . $ _gsl_vector_complex_long_double_view# |
| 89 | gsl_vector_complex_long_double_view_arraycxx . . $ gsl_vector_complex_long_double_view_array(be3d6fcf1430b2c6). (long double *base, |
| 90 | size_tcxx . . $ size_t# n); |
| 91 | |
| 92 | _gsl_vector_complex_long_double_viewcxx . . $ _gsl_vector_complex_long_double_view# |
| 93 | gsl_vector_complex_long_double_view_array_with_stridecxx . . $ gsl_vector_complex_long_double_view_array_with_stride(51704fea01301fe1). (long double *base, |
| 94 | size_tcxx . . $ size_t# stride, |
| 95 | size_tcxx . . $ size_t# n); |
| 96 | |
| 97 | _gsl_vector_complex_long_double_const_viewcxx . . $ _gsl_vector_complex_long_double_const_view# |
| 98 | gsl_vector_complex_long_double_const_view_arraycxx . . $ gsl_vector_complex_long_double_const_view_array(cb949dfdde9bbbf2). (const long double *base, |
| 99 | size_tcxx . . $ size_t# n); |
| 100 | |
| 101 | _gsl_vector_complex_long_double_const_viewcxx . . $ _gsl_vector_complex_long_double_const_view# |
| 102 | gsl_vector_complex_long_double_const_view_array_with_stridecxx . . $ gsl_vector_complex_long_double_const_view_array_with_stride(7628e28ff8d76aff). (const long double *base, |
| 103 | size_tcxx . . $ size_t# stride, |
| 104 | size_tcxx . . $ size_t# n); |
| 105 | |
| 106 | _gsl_vector_complex_long_double_viewcxx . . $ _gsl_vector_complex_long_double_view# |
| 107 | gsl_vector_complex_long_double_subvectorcxx . . $ gsl_vector_complex_long_double_subvector(2f73d1052dc1cb3a). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# *base, |
| 108 | size_tcxx . . $ size_t# i, |
| 109 | size_tcxx . . $ size_t# n); |
| 110 | |
| 111 | |
| 112 | _gsl_vector_complex_long_double_viewcxx . . $ _gsl_vector_complex_long_double_view# |
| 113 | gsl_vector_complex_long_double_subvector_with_stridecxx . . $ gsl_vector_complex_long_double_subvector_with_stride(52613251e88dbea). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# *v, |
| 114 | size_tcxx . . $ size_t# i, |
| 115 | size_tcxx . . $ size_t# stride, |
| 116 | size_tcxx . . $ size_t# n); |
| 117 | |
| 118 | _gsl_vector_complex_long_double_const_viewcxx . . $ _gsl_vector_complex_long_double_const_view# |
| 119 | gsl_vector_complex_long_double_const_subvectorcxx . . $ gsl_vector_complex_long_double_const_subvector(c2ca2405d9096427). (const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# *base, |
| 120 | size_tcxx . . $ size_t# i, |
| 121 | size_tcxx . . $ size_t# n); |
| 122 | |
| 123 | |
| 124 | _gsl_vector_complex_long_double_const_viewcxx . . $ _gsl_vector_complex_long_double_const_view# |
| 125 | gsl_vector_complex_long_double_const_subvector_with_stridecxx . . $ gsl_vector_complex_long_double_const_subvector_with_stride(a3fe0e86d7f7c4b9). (const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# *v, |
| 126 | size_tcxx . . $ size_t# i, |
| 127 | size_tcxx . . $ size_t# stride, |
| 128 | size_tcxx . . $ size_t# n); |
| 129 | |
| 130 | _gsl_vector_long_double_viewcxx . . $ _gsl_vector_long_double_view# |
| 131 | gsl_vector_complex_long_double_realcxx . . $ gsl_vector_complex_long_double_real(c9f6fb429551ed80). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# *v); |
| 132 | |
| 133 | _gsl_vector_long_double_viewcxx . . $ _gsl_vector_long_double_view# |
| 134 | gsl_vector_complex_long_double_imagcxx . . $ gsl_vector_complex_long_double_imag(c9f6fb429551ed80). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# *v); |
| 135 | |
| 136 | _gsl_vector_long_double_const_viewcxx . . $ _gsl_vector_long_double_const_view# |
| 137 | gsl_vector_complex_long_double_const_realcxx . . $ gsl_vector_complex_long_double_const_real(889e56a7de722c55). (const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# *v); |
| 138 | |
| 139 | _gsl_vector_long_double_const_viewcxx . . $ _gsl_vector_long_double_const_view# |
| 140 | gsl_vector_complex_long_double_const_imagcxx . . $ gsl_vector_complex_long_double_const_imag(889e56a7de722c55). (const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# *v); |
| 141 | |
| 142 | |
| 143 | /* Operations */ |
| 144 | |
| 145 | gsl_complex_long_doublecxx . . $ gsl_complex_long_double# |
| 146 | gsl_vector_complex_long_double_getcxx . . $ gsl_vector_complex_long_double_get(b6d59ade166c2d2b). (const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v, const size_tcxx . . $ size_t# i); |
| 147 | |
| 148 | void gsl_vector_complex_long_double_setcxx . . $ gsl_vector_complex_long_double_set(e488f24e6fae4a68). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v, const size_tcxx . . $ size_t# i, |
| 149 | gsl_complex_long_doublecxx . . $ gsl_complex_long_double# z); |
| 150 | |
| 151 | gsl_complex_long_doublecxx . . $ gsl_complex_long_double# |
| 152 | *gsl_vector_complex_long_double_ptrcxx . . $ gsl_vector_complex_long_double_ptr(fea9c297207a3d9a). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v, const size_tcxx . . $ size_t# i); |
| 153 | |
| 154 | const gsl_complex_long_doublecxx . . $ gsl_complex_long_double# |
| 155 | *gsl_vector_complex_long_double_const_ptrcxx . . $ gsl_vector_complex_long_double_const_ptr(74cc83e9ea4d31ae). (const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v, const size_tcxx . . $ size_t# i); |
| 156 | |
| 157 | void gsl_vector_complex_long_double_set_zerocxx . . $ gsl_vector_complex_long_double_set_zero(8e460e7eb39be101). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v); |
| 158 | void gsl_vector_complex_long_double_set_allcxx . . $ gsl_vector_complex_long_double_set_all(14ba711bd66ea1d2). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v, |
| 159 | gsl_complex_long_doublecxx . . $ gsl_complex_long_double# z); |
| 160 | int gsl_vector_complex_long_double_set_basiscxx . . $ gsl_vector_complex_long_double_set_basis(1212e07053a72ce1). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v, size_tcxx . . $ size_t# i); |
| 161 | |
| 162 | int gsl_vector_complex_long_double_freadcxx . . $ gsl_vector_complex_long_double_fread(b2ad88502c4c911e). (FILEcxx . . $ FILE# * stream, |
| 163 | gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v); |
| 164 | int gsl_vector_complex_long_double_fwritecxx . . $ gsl_vector_complex_long_double_fwrite(3b7a556a0b75b7c4). (FILEcxx . . $ FILE# * stream, |
| 165 | const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v); |
| 166 | int gsl_vector_complex_long_double_fscanfcxx . . $ gsl_vector_complex_long_double_fscanf(b2ad88502c4c911e). (FILEcxx . . $ FILE# * stream, |
| 167 | gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v); |
| 168 | int gsl_vector_complex_long_double_fprintfcxx . . $ gsl_vector_complex_long_double_fprintf(156d8639c125cb0e). (FILEcxx . . $ FILE# * stream, |
| 169 | const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v, |
| 170 | const char *format); |
| 171 | |
| 172 | int gsl_vector_complex_long_double_memcpycxx . . $ gsl_vector_complex_long_double_memcpy(26e83f5803a69040). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * dest, const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * src); |
| 173 | |
| 174 | int gsl_vector_complex_long_double_reversecxx . . $ gsl_vector_complex_long_double_reverse(999865970fe22e94). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v); |
| 175 | |
| 176 | int gsl_vector_complex_long_double_swapcxx . . $ gsl_vector_complex_long_double_swap(808136684a0c778e). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v, gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * w); |
| 177 | int gsl_vector_complex_long_double_swap_elementscxx . . $ gsl_vector_complex_long_double_swap_elements(3daeae520c99934c). (gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v, const size_tcxx . . $ size_t# i, const size_tcxx . . $ size_t# j); |
| 178 | |
| 179 | int gsl_vector_complex_long_double_isnullcxx . . $ gsl_vector_complex_long_double_isnull(aa31f7f0c8edaa4). (const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v); |
| 180 | int gsl_vector_complex_long_double_isposcxx . . $ gsl_vector_complex_long_double_ispos(aa31f7f0c8edaa4). (const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v); |
| 181 | int gsl_vector_complex_long_double_isnegcxx . . $ gsl_vector_complex_long_double_isneg(aa31f7f0c8edaa4). (const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v); |
| 182 | int gsl_vector_complex_long_double_isnonnegcxx . . $ gsl_vector_complex_long_double_isnonneg(aa31f7f0c8edaa4). (const gsl_vector_complex_long_doublecxx . . $ gsl_vector_complex_long_double# * v); |
| 183 | |
| 184 | #ifdef HAVE_INLINE |
| 185 | |
| 186 | extern inline |
| 187 | gsl_complex_long_double |
| 188 | gsl_vector_complex_long_double_get (const gsl_vector_complex_long_double * v, |
| 189 | const size_t i) |
| 190 | { |
| 191 | #if GSL_RANGE_CHECK |
| 192 | if (i >= v->size) |
| 193 | { |
| 194 | gsl_complex_long_double zero = {{0, 0}}; |
| 195 | GSL_ERROR_VAL ("index out of range", GSL_EINVAL, zero); |
| 196 | } |
| 197 | #endif |
| 198 | return *GSL_COMPLEX_LONG_DOUBLE_AT (v, i); |
| 199 | } |
| 200 | |
| 201 | extern inline |
| 202 | void |
| 203 | gsl_vector_complex_long_double_set (gsl_vector_complex_long_double * v, |
| 204 | const size_t i, gsl_complex_long_double z) |
| 205 | { |
| 206 | #if GSL_RANGE_CHECK |
| 207 | if (i >= v->size) |
| 208 | { |
| 209 | GSL_ERROR_VOID ("index out of range", GSL_EINVAL); |
| 210 | } |
| 211 | #endif |
| 212 | *GSL_COMPLEX_LONG_DOUBLE_AT (v, i) = z; |
| 213 | } |
| 214 | |
| 215 | extern inline |
| 216 | gsl_complex_long_double * |
| 217 | gsl_vector_complex_long_double_ptr (gsl_vector_complex_long_double * v, |
| 218 | const size_t i) |
| 219 | { |
| 220 | #if GSL_RANGE_CHECK |
| 221 | if (i >= v->size) |
| 222 | { |
| 223 | GSL_ERROR_NULL ("index out of range", GSL_EINVAL); |
| 224 | } |
| 225 | #endif |
| 226 | return GSL_COMPLEX_LONG_DOUBLE_AT (v, i); |
| 227 | } |
| 228 | |
| 229 | extern inline |
| 230 | const gsl_complex_long_double * |
| 231 | gsl_vector_complex_long_double_const_ptr (const gsl_vector_complex_long_double * v, |
| 232 | const size_t i) |
| 233 | { |
| 234 | #if GSL_RANGE_CHECK |
| 235 | if (i >= v->size) |
| 236 | { |
| 237 | GSL_ERROR_NULL ("index out of range", GSL_EINVAL); |
| 238 | } |
| 239 | #endif |
| 240 | return GSL_COMPLEX_LONG_DOUBLE_AT (v, i); |
| 241 | } |
| 242 | |
| 243 | |
| 244 | #endif /* HAVE_INLINE */ |
| 245 | |
| 246 | __END_DECLScxx . . $ `external/gsl/gsl_vector_complex_long_double.h:39:10`! |
| 247 | |
| 248 | #endif /* __GSL_VECTOR_COMPLEX_LONG_DOUBLE_H__ */ |