You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.3 KiB

  1. /* This file has been modified to use the standard gfortran calling
  2. convention, rather than the f2c calling convention.
  3. It does not require -ff2c when compiled with gfortran.
  4. */
  5. /* complexdots.f -- translated by f2c (version 20100827).
  6. You must link the resulting object file with libf2c:
  7. on Microsoft Windows system, link with libf2c.lib;
  8. on Linux or Unix systems, link with .../path/to/libf2c.a -lm
  9. or, if you install libf2c.a in a standard place, with -lf2c -lm
  10. -- in that order, at the end of the command line, as in
  11. cc *.o -lf2c -lm
  12. Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
  13. http://www.netlib.org/f2c/libf2c.zip
  14. */
  15. #include "datatypes.h"
  16. complex cdotc_(integer *n, complex *cx, integer
  17. *incx, complex *cy, integer *incy)
  18. {
  19. complex res;
  20. extern /* Subroutine */ int cdotcw_(integer *, complex *, integer *,
  21. complex *, integer *, complex *);
  22. /* Parameter adjustments */
  23. --cy;
  24. --cx;
  25. /* Function Body */
  26. cdotcw_(n, &cx[1], incx, &cy[1], incy, &res);
  27. return res;
  28. } /* cdotc_ */
  29. complex cdotu_(integer *n, complex *cx, integer
  30. *incx, complex *cy, integer *incy)
  31. {
  32. complex res;
  33. extern /* Subroutine */ int cdotuw_(integer *, complex *, integer *,
  34. complex *, integer *, complex *);
  35. /* Parameter adjustments */
  36. --cy;
  37. --cx;
  38. /* Function Body */
  39. cdotuw_(n, &cx[1], incx, &cy[1], incy, &res);
  40. return res;
  41. } /* cdotu_ */
  42. doublecomplex zdotc_(integer *n, doublecomplex *cx, integer *incx,
  43. doublecomplex *cy, integer *incy)
  44. {
  45. doublecomplex res;
  46. extern /* Subroutine */ int zdotcw_(integer *, doublecomplex *, integer *,
  47. doublecomplex *, integer *, doublecomplex *);
  48. /* Parameter adjustments */
  49. --cy;
  50. --cx;
  51. /* Function Body */
  52. zdotcw_(n, &cx[1], incx, &cy[1], incy, &res);
  53. return res;
  54. } /* zdotc_ */
  55. doublecomplex zdotu_(integer *n, doublecomplex *cx, integer *incx,
  56. doublecomplex *cy, integer *incy)
  57. {
  58. doublecomplex res;
  59. extern /* Subroutine */ int zdotuw_(integer *, doublecomplex *, integer *,
  60. doublecomplex *, integer *, doublecomplex *);
  61. /* Parameter adjustments */
  62. --cy;
  63. --cx;
  64. /* Function Body */
  65. zdotuw_(n, &cx[1], incx, &cy[1], incy, &res);
  66. return res;
  67. } /* zdotu_ */