Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ vec_damax(A) — Apollo Domain/OS SR10.3.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

vec_$rmax

vec_$rmin

vec_$amin

vec_$amax_i

vec_$amax

vec_$damax_i

vec_$iamax

vec_$iamax_i

vec_$iamax16

vec_$iamax16_i

VEC_$DAMAX                        Domain/OS                         VEC_$DAMAX


NAME
     vec_$damax - find the maximum absolute value in a double-precision vector

SYNOPSIS (C)
     #include <apollo/base.h>
     #include <apollo/vec.h>

     long int vec_$damax(
          double *start_vec,
          long int &length,
          double *result)

SYNOPSIS (Pascal)
     %include '/sys/ins/base.ins.pas';
     %include '/sys/ins/vec.ins.pas';

     function vec_$damax(
          in start_vec: univ vec_$double_vector;
          in length: integer32;
          out result: double): integer32;

SYNOPSIS (FORTRAN)
     %include '/sys/ins/base.ins.ftn'
     %include '/sys/ins/vec.ins.ftn'

           parameter (nvec = 10)

           real*8 start_vec(nvec), result
           integer*4 length, location

           location = vec_$damax(start_vec, length, result)

DESCRIPTION
     Vec_$damax searches through length elements of start_vec, places the
     greatest absolute-valued element in result, and returns the location of
     the element with the greatest absolute value. By contrast, vec_$drmax
     finds the element with greatest signed value.  (The procedure vec_$dmax
     is obsolete and should not be used.)  In the case of a tie, vec_$damax
     returns the index of the first maximum value found.  vec_$damax differs
     from vec_$amax in that the argument vector is double-precision floating-
     point.

     start_vec
          The vector to be searched.

     length
          The number of elements to be operated on;  normally the same as the
          number of elements in the vectors.

     result
          The value of the greatest element in start_vec.

NOTES
     In C and Pascal, vec_$damax searches a row vector; in FORTRAN, it
     searches a column vector.


SEE ALSO
     vec_$rmax, vec_$rmin, vec_$amin, vec_$amax_i, vec_$amax, vec_$damax_i,
     vec_$iamax, vec_$iamax_i, vec_$iamax16, vec_$iamax16_i.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026