Developer Reference

  • 0.9
  • 09/09/2020
  • Public Content
Contents

cblas_i?amin

Finds the index of the element with the smallest absolute value.

Syntax

CBLAS_INDEX
cblas_isamin
(
const
MKL_INT
n
,
const
float
*x
,
const
MKL_INT
incx
);
CBLAS_INDEX
cblas_idamin
(
const
MKL_INT
n
,
const
double
*x
,
const
MKL_INT
incx
);
CBLAS_INDEX
cblas_icamin
(
const
MKL_INT
n
,
const
void
*x
,
const
MKL_INT
incx
);
CBLAS_INDEX
cblas_izamin
(
const
MKL_INT
n
,
const
void
*x
,
const
MKL_INT
incx
);
Include Files
  • mkl.h
Description
Given a vector
x
, the
i?amin
functions return the position of the vector element
x
[
i
]
that has the smallest absolute value for real flavors, or the smallest sum
|Re(
x
[
i
])|+|Im(
x
[
i
])|
for complex flavors.
If either
n
or
incx
are not positive, the routine returns
0
.
If more than one vector element is found with the same smallest absolute value, the index of the first one encountered is returned.
If the vector contains
NaN
values, then the routine returns the index of the first
NaN
.
Input Parameters
n
On entry,
n
specifies the number of elements in vector
x
.
x
Array, size at least
(1+(
n
-1)*abs(
incx
))
.
incx
Specifies the increment for the elements of
x
.
Return Values
Indicates the position of vector element with the smallest absolute value such that
x
[
index
-1]
has the smallest absolute value. The index returned is zero-based.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804