Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 3/31/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?Pack

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

Syntax

call vspacki( n, a, inca, y )

call vspackv( n, a, ia, y )

call vspackm( n, a, ma, y )

call vdpacki( n, a, inca, y )

call vdpackv( n, a, ia, y )

call vdpackm( n, a, ma, y )

call vcpacki( n, a, inca, y )

call vcpackv( n, a, ia, y )

call vcpackm( n, a, ma, y )

call vzpacki( n, a, inca, y )

call vzpackv( n, a, ia, y )

call vzpackm( n, a, ma, y )

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 vdpacki, vdpackv, vdpackm

COMPLEX for vcpacki, vcpackv, vcpackm

DOUBLE COMPLEX for vzpacki, vzpackv, vzpackm

REAL, INTENT(IN) for vspacki, vspackv, vspackm

DOUBLE PRECISION, INTENT(IN) for vdpacki, vdpackv, vdpackm

COMPLEX, INTENT(IN) for vcpacki, vcpackv, vcpackm

DOUBLE COMPLEX, INTENT(IN) for vzpacki, vzpackv, vzpackm

Array, DIMENSION at least(1 + (n-1)*inca) for v?packi,

Array, DIMENSION at least max( n,max(ia[j]) ), j=0, …, n-1 for v?packv,

Array, DIMENSION at least n for v?packm.

Specifies the input vector a.

inca

INTEGER, INTENT(IN) for vspacki, vdpacki, vcpacki, vzpacki

Specifies the increment for the elements of a.

ia

FORTRAN 77: INTEGER for vspackv, vdpackv, vcpackv, vzpackv

INTEGER, INTENT(IN) for vspackv, vdpackv, vcpackv, vzpackv

Array, DIMENSION at least n.

Specifies the index vector for the elements of a.

ma

FORTRAN 77: INTEGER for vspackm, vdpackm, vcpackm, vzpackm

Fortran 90: INTEGER, INTENT(IN) for vspackm, vdpackm, vcpackm, vzpackm

Array, DIMENSION at least n,

Specifies the mask vector for the elements of a.

Output Parameters

Name

Type

Description

y

DOUBLE PRECISION for vdpacki, vdpackv, vdpackm

COMPLEX for vcpacki, vcpackv, vcpackm

DOUBLE COMPLEX for vzpacki, vzpackv, vzpackm

REAL, INTENT(OUT) for vspacki, vspackv, vspackm

DOUBLE PRECISION, INTENT(OUT) for vdpacki, vdpackv, vdpackm

COMPLEX, INTENT(OUT) for vcpacki, vcpackv, vcpackm

DOUBLE COMPLEX, INTENT(OUT) for vzpacki, vzpackv, vzpackm

Array, DIMENSION at least n. Specifies the output vector y.