Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ vec_iamin(A) — Apollo Domain/OS SR10.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

vec_$rmin

vec_$rmax

vec_$amax

vec_$amin_i

vec_$damin

vec_$damin_i

vec_$amin

vec_$iamin_i

vec_$iamin16

vec_$iamin16_i

VEC_$IAMIN                        Domain/OS                         VEC_$IAMIN


NAME
     vec_$iamin - find the minimum absolute value in a 32-bit integer vector

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

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

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

     function vec_$iamin(
          in start_vec: univ vec_$integer32_vector;
          in length: integer32;
          out result: integer32): integer32;

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

           parameter (nvec = 10)

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

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

DESCRIPTION
     Vec_$iamin searches through length elements of start_vec, places the
     smallest absolute-valued element in result, and returns the location of
     the element with the smallest absolute value. By contrast, vec_$irmin
     finds the element with smallest signed value.  In the case of a tie,
     vec_$iamin returns the index of the first minimum value found.
     Vec_$iamin differs from vec_$amin in that the argument vector contains
     32-bit integers.


     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 smallest element in start_vec.

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


SEE ALSO
     vec_$rmin, vec_$rmax, vec_$amax, vec_$amin_i, vec_$damin, vec_$damin_i,
     vec_$amin, vec_$iamin_i, vec_$iamin16, vec_$iamin16_i.

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