LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

IAMAX

IAMAX[x]

gives the position of the element with the maximum absolute value in a vector x.

Details

  • To use IAMAX, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
  • The following argument must be given:
  • xinput expressionvector
  • For complex vectors x, IAMAX locates the element with the greatest sum of absolute values of the real and imaginary parts.
  • If x contains non-numeric elements, then IAMAX[x] always returns $Failed.
  • For duplicate entries the first position found is returned.

Examples

open all close all

Basic Examples  (1)

Load the BLAS package:

In[1]:=
Click for copyable input

Find the position of the element with the largest absolute value in a vector:

In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Properties & Relations  (1)

Possible Issues  (2)