Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

v?Unpack

Copies elements of a vector with unit increment to an array with specified indexing.

Syntax

call vsunpacki( n, a, y, incy )

call vsunpackv( n, a, y, iy )

call vsunpackm( n, a, y, my )

call vdunpacki( n, a, y, incy )

call vdunpackv( n, a, y, iy )

call vdunpackm( n, a, y, my )

call vcunpacki( n, a, y, incy )

call vcunpackv( n, a, y, iy )

call vcunpackm( n, a, y, my )

call vzunpacki( n, a, y, incy )

call vzunpackv( n, a, y, iy )

call vzunpackm( n, a, y, my )

Include Files

  • mkl_vml.f90

Input Parameters

Name

Type

Description

n

INTEGER, INTENT(IN)

Specifies the number of elements to be calculated.

a

DOUBLE PRECISION for vdunpacki, vdunpackv, vdunpackm

COMPLEX for vcunpacki, vcunpackv, vcunpackm

DOUBLE COMPLEX for vzunpacki, vzunpackv, vznpackm

REAL, INTENT(IN) for vsunpacki, vsunpackv, vsunpackm

DOUBLE PRECISION, INTENT(IN) for vdunpacki, vdunpackv, vdunpackm

COMPLEX, INTENT(IN) for vcunpacki, vcunpackv, vcunpackm

DOUBLE COMPLEX, INTENT(IN) for vzunpacki, vzunpackv, vzunpackm

Array, DIMENSION at least n.

Specifies the input vector a.

incy

INTEGER, INTENT(IN) for vsunpacki, vdunpacki, vcunpacki, vzunpacki

Specifies the increment for the elements of y.

iy

INTEGER, INTENT(IN) for vsunpackv, vdunpackv, vcunpackv, vzunpackv

Array, DIMENSION at least n.

Specifies the index vector for the elements of y.

my

INTEGER, INTENT(IN) for vsunpackm, vdunpackm, vcunpackm, vzunpackm

Array, DIMENSION at least n,

Specifies the mask vector for the elements of y.

Output Parameters

Name

Type

Description

y

DOUBLE PRECISION for vdunpacki, vdunpackv, vdunpackm

COMPLEX, INTENT(IN) for vcunpacki, vcunpackv, vcunpackm

DOUBLE COMPLEX, INTENT(IN) for vzunpacki, vzunpackv, vzunpackm

REAL, INTENT(OUT) for vsunpacki, vsunpackv, vsunpackm

DOUBLE PRECISION, INTENT(OUT) for vdunpacki, vdunpackv, vdunpackm

COMPLEX, INTENT(OUT) for vcunpacki, vcunpackv, vcunpackm

DOUBLE COMPLEX, INTENT(OUT) for vzunpacki, vzunpackv, vzunpackm

Array, DIMENSION

for v?unpacki, at least (1 + (n-1)*incy)

for v?unpackv, at least max( n,max(iy[j]) ),j=0,..., n-1

for v?unpackm, at least n

  • for v?UnpackI, at least (1 + (n-1)*incy)
  • for v?UnpackV, at least max( n,max(ia[j]) ),j=0,..., n-1,
  • for v?UnpackM, at least n.