Function

vDSP_vgathra(_:_:_:_:_:)

Gathers a single-precision vector using the specified pointers.

Declaration

func vDSP_vgathra(_ __A: UnsafeMutablePointer<UnsafePointer<Float>>, _ __IA: vDSP_Stride, _ __C: UnsafeMutablePointer<Float>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)

Parameters

__A

Input vector containing pointers to single-precision values in memory.

__IA

Address stride for A.

__C

Single-precision real output vector.

__IC

Address stride for C.

__N

The number of elements to process.

Discussion

Performs the following operation:

for (n = 0; n < N; ++n){
    C[n*IC] = *A[n*IA];
}

Uses elements of vector A as pointers to copy selected single-precision values from memory to sequential locations in vector C. This function can only be done out of place.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software