| 1 |
/* vector/vector.c |
| 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 |
#include "gsl__config.h" |
| 21 |
#include "gsl_errno.h" |
| 22 |
#include "gsl_vector.h" |
| 23 |
|
| 24 |
/* turn off range checking at runtime if zero */ |
| 25 |
int gsl_check_range = 1; |
| 26 |
|
| 27 |
#define BASE_GSL_COMPLEX_LONG |
| 28 |
#include "templates_on.h" |
| 29 |
#include "gsl_vector__vector_source.c" |
| 30 |
#include "templates_off.h" |
| 31 |
#undef BASE_GSL_COMPLEX_LONG |
| 32 |
|
| 33 |
#define BASE_GSL_COMPLEX |
| 34 |
#include "templates_on.h" |
| 35 |
#include "gsl_vector__vector_source.c" |
| 36 |
#include "templates_off.h" |
| 37 |
#undef BASE_GSL_COMPLEX |
| 38 |
|
| 39 |
#define BASE_GSL_COMPLEX_FLOAT |
| 40 |
#include "templates_on.h" |
| 41 |
#include "gsl_vector__vector_source.c" |
| 42 |
#include "templates_off.h" |
| 43 |
#undef BASE_GSL_COMPLEX_FLOAT |
| 44 |
|
| 45 |
#define BASE_LONG_DOUBLE |
| 46 |
#include "templates_on.h" |
| 47 |
#include "gsl_vector__vector_source.c" |
| 48 |
#include "templates_off.h" |
| 49 |
#undef BASE_LONG_DOUBLE |
| 50 |
|
| 51 |
#define BASE_DOUBLE |
| 52 |
#include "templates_on.h" |
| 53 |
#include "gsl_vector__vector_source.c" |
| 54 |
#include "templates_off.h" |
| 55 |
#undef BASE_DOUBLE |
| 56 |
|
| 57 |
#define BASE_FLOAT |
| 58 |
#include "templates_on.h" |
| 59 |
#include "gsl_vector__vector_source.c" |
| 60 |
#include "templates_off.h" |
| 61 |
#undef BASE_FLOAT |
| 62 |
|
| 63 |
#define BASE_ULONG |
| 64 |
#include "templates_on.h" |
| 65 |
#include "gsl_vector__vector_source.c" |
| 66 |
#include "templates_off.h" |
| 67 |
#undef BASE_ULONG |
| 68 |
|
| 69 |
#define BASE_LONG |
| 70 |
#include "templates_on.h" |
| 71 |
#include "gsl_vector__vector_source.c" |
| 72 |
#include "templates_off.h" |
| 73 |
#undef BASE_LONG |
| 74 |
|
| 75 |
#define BASE_UINT |
| 76 |
#include "templates_on.h" |
| 77 |
#include "gsl_vector__vector_source.c" |
| 78 |
#include "templates_off.h" |
| 79 |
#undef BASE_UINT |
| 80 |
|
| 81 |
#define BASE_INT |
| 82 |
#include "templates_on.h" |
| 83 |
#include "gsl_vector__vector_source.c" |
| 84 |
#include "templates_off.h" |
| 85 |
#undef BASE_INT |
| 86 |
|
| 87 |
#define BASE_USHORT |
| 88 |
#include "templates_on.h" |
| 89 |
#include "gsl_vector__vector_source.c" |
| 90 |
#include "templates_off.h" |
| 91 |
#undef BASE_USHORT |
| 92 |
|
| 93 |
#define BASE_SHORT |
| 94 |
#include "templates_on.h" |
| 95 |
#include "gsl_vector__vector_source.c" |
| 96 |
#include "templates_off.h" |
| 97 |
#undef BASE_SHORT |
| 98 |
|
| 99 |
#define BASE_UCHAR |
| 100 |
#include "templates_on.h" |
| 101 |
#include "gsl_vector__vector_source.c" |
| 102 |
#include "templates_off.h" |
| 103 |
#undef BASE_UCHAR |
| 104 |
|
| 105 |
#define BASE_CHAR |
| 106 |
#include "templates_on.h" |
| 107 |
#include "gsl_vector__vector_source.c" |
| 108 |
#include "templates_off.h" |
| 109 |
#undef BASE_CHAR |