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

scabs1.f 1.3 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. *> \brief \b SCABS1
  2. *
  3. * =========== DOCUMENTATION ===========
  4. *
  5. * Online html documentation available at
  6. * http://www.netlib.org/lapack/explore-html/
  7. *
  8. * Definition:
  9. * ===========
  10. *
  11. * REAL FUNCTION SCABS1(Z)
  12. *
  13. * .. Scalar Arguments ..
  14. * COMPLEX Z
  15. * ..
  16. *
  17. *
  18. *> \par Purpose:
  19. * =============
  20. *>
  21. *> \verbatim
  22. *>
  23. *> SCABS1 computes |Re(.)| + |Im(.)| of a complex number
  24. *> \endverbatim
  25. *
  26. * Arguments:
  27. * ==========
  28. *
  29. *> \param[in] Z
  30. *> \verbatim
  31. *> Z is COMPLEX
  32. *> \endverbatim
  33. *
  34. * Authors:
  35. * ========
  36. *
  37. *> \author Univ. of Tennessee
  38. *> \author Univ. of California Berkeley
  39. *> \author Univ. of Colorado Denver
  40. *> \author NAG Ltd.
  41. *
  42. *> \date November 2017
  43. *
  44. *> \ingroup single_blas_level1
  45. *
  46. * =====================================================================
  47. REAL FUNCTION SCABS1(Z)
  48. *
  49. * -- Reference BLAS level1 routine (version 3.8.0) --
  50. * -- Reference BLAS is a software package provided by Univ. of Tennessee, --
  51. * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
  52. * November 2017
  53. *
  54. * .. Scalar Arguments ..
  55. COMPLEX Z
  56. * ..
  57. *
  58. * =====================================================================
  59. *
  60. * .. Intrinsic Functions ..
  61. INTRINSIC ABS,AIMAG,REAL
  62. * ..
  63. SCABS1 = ABS(REAL(Z)) + ABS(AIMAG(Z))
  64. RETURN
  65. END