Extracts elements from the sparse vector x into the corresponding location in the dense vector y, with both vectors containing single-precision values.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The number of elements in the dense vector y.
The number of nonzero entries in the sparse vector x.
true, zero the elements of y which do not have nonzero values written to them. When
falseignore the elements of y which do not have nonzero values written to them.
Pointer to the dense storage for the values of the sparse vector x. The corresponding entry in
indxholds the index of the value. Contains
Pointer to the dense storage for the index values of the sparse vector x. The corresponding entry in x holds the values of the vector. Contains
Indices are always assumed to be stored in ascending order. Additionally, indices are assumed to be unique. Undefined behavior if either of these assumptions are not met.All indices are 0 based (the first element of a pointer is
Pointer to the dense vector y. Expected to be of size
N * abs(incy)elements. Negative strides are supported. Note, unlike dense BLAS routines, the pointer points to the last element when stride is negative. On exit, the entries described by the indices in
indxwill be filled with the corresponding values in
xand all other values will be unchanged if parameter zero is
false, or set to zero if parameter zero is
Increment between valid values in the dense vector y. Negative strides are supported.
This function extracts elements from the sparse vector x into the corresponding location in the dense vector y. It can optionally zero the unused values of y by setting the
zero parameter to
The function is equivalent to the following code.
On exit, y has been updated with the nonzero values. If
nz is less than or equal to zero, y is unchanged.