Developer Reference

  • 2020.2
  • 07/15/2020
  • Public Content
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