next up previous index
Next: E104 Multidimensional Linear Up: CERNLIB Previous: E102 Maximum and

E103 Largest Absolute Number in Scattered Vector

Routine ID: E103
Author(s): J. ZollLibrary: KERNLIB
Submitter: C. LetertreSubmitted: 01.09.1969
Language: FortranRevised:

AMAXMU looks for the largest absolute value in a scattered vector of real numbers.

Structure:

FUNCTION subprogram
User Entry Names: AMAXMU

Usage:

In any arithmetic expression, AMAXMU(A,IDO,IW,NA)

is set to the largest absolute value of numbers in any of the subsets of A as specified by IDO, IW and NA.

A
(REAL) One-dimensional array, containing a number of subsets of real numbers.
IDO
(INTEGER) Number of subsets to be examined.
IW
(INTEGER) Number of words in each subset.
NA
(INTEGER) Specifies the distance between the first elements of consecutive subsets.

Notes:

To find the largest element in a continuous vector, VMAXA (F121) is faster than AMAXMU.

Examples:

    X=AMAXMU(A,4,1,2)
sets X equal to the largest absolute value of A(1), A(3), A(5) and A(7).

E104


Janne Saarela
Mon Apr 3 15:06:23 METDST 1995