---
name: "idamax.f"
section: "3"
platform: "linux"
package: "lapack-doc"
version: "3.12.1-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/idamax.f"
---

# idamax.f(3)

## NAME

BLAS/SRC/idamax.f

## SYNOPSIS

### Functions/Subroutines

integer function **idamax** (n, dx, incx)\
 **IDAMAX**

## Function/Subroutine Documentation

### integer function idamax (integer n, double precision, dimension(\*) dx, integer incx)

**IDAMAX**

**Purpose:**

```
!>
!>    IDAMAX finds the index of the first element having maximum absolute value.
!>
```

**Parameters**

*N*

```
!>          N is INTEGER
!>         number of elements in input vector(s)
!>
```

*DX*

```
!>          DX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
!>
```

*INCX*

```
!>          INCX is INTEGER
!>         storage spacing between elements of DX
!>
```

**Author**

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

**Further Details:**

```
!>
!>     jack dongarra, linpack, 3/11/78.
!>     modified 3/93 to return if incx .le. 0.
!>     modified 12/3/93, array(1) declarations changed to array(*)
!>
```

Definition at line **70** of file **idamax.f**.

## Author

Generated automatically by Doxygen for LAPACK from the source code.
