gsl_vector__vector.c 2.8 KB

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