File: icmax1

package info (click to toggle)
ruby-lapack 1.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 28,552 kB
  • sloc: ansic: 191,612; ruby: 3,934; makefile: 8
file content (55 lines) | stat: -rwxr-xr-x 1,588 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- 
:name: icmax1
:md5sum: 6796e7d2b5b097cd869358883d90e06c
:category: :function
:type: integer
:arguments: 
- n: 
    :type: integer
    :intent: input
- cx: 
    :type: complex
    :intent: input
    :dims: 
    - n
- incx: 
    :type: integer
    :intent: input
:substitutions: {}

:fortran_help: "      INTEGER          FUNCTION ICMAX1( N, CX, INCX )\n\n\
  *  Purpose\n\
  *  =======\n\
  *\n\
  *  ICMAX1 finds the index of the element whose real part has maximum\n\
  *  absolute value.\n\
  *\n\
  *  Based on ICAMAX from Level 1 BLAS.\n\
  *  The change is to use the 'genuine' absolute value.\n\
  *\n\
  *  Contributed by Nick Higham for use with CLACON.\n\
  *\n\n\
  *  Arguments\n\
  *  =========\n\
  *\n\
  *  N       (input) INTEGER\n\
  *          The number of elements in the vector CX.\n\
  *\n\
  *  CX      (input) COMPLEX array, dimension (N)\n\
  *          The vector whose elements will be summed.\n\
  *\n\
  *  INCX    (input) INTEGER\n\
  *          The spacing between successive values of CX.  INCX >= 1.\n\
  *\n\n\
  * =====================================================================\n\
  *\n\
  *     .. Local Scalars ..\n      INTEGER            I, IX\n      REAL               SMAX\n      COMPLEX            ZDUM\n\
  *     ..\n\
  *     .. Intrinsic Functions ..\n      INTRINSIC          ABS\n\
  *     ..\n\
  *     .. Statement Functions ..\n      REAL               CABS1\n\
  *     ..\n\
  *     .. Statement Function definitions ..\n\
  *\n\
  *     NEXT LINE IS THE ONLY MODIFICATION.\n      CABS1( ZDUM ) = ABS( ZDUM )\n\
  *     ..\n"