---
title: vDSP_vsdiv
framework: Accelerate
role: symbol
role_heading: Function
platforms: [iOS 4.0+, iPadOS 4.0+, Mac Catalyst 13.1+, macOS 10.4+, visionOS 1.0+, watchOS 2.0+]
path: accelerate/vdsp_vsdiv
---

# vDSP_vsdiv

Calculates the single-precision element-wise division of a vector and a scalar value, using the specified stride.

## Declaration

```occ
extern void vDSP_vsdiv(const float *__A, vDSP_Stride __IA, const float *__B, float *__C, vDSP_Stride __IC, vDSP_Length __N);
```

## Parameters

- `__A`: The input vector, A.
- `__IA`: The distance between the elements in the input vector.
- `__B`: The input scalar, B.
- `__C`: The output vector, C.
- `__IC`: The distance between the elements in the output vector.
- `__N`: The number of elements that the function processes.

## Mentioned in

Using vDSP for vector-based arithmetic

## Discussion

Discussion This function calculates the element-wise division of vector A and scalar value B, and writes the result to vector C, as follows:  for (n = 0; n < N; ++n)     C[n] = A[n] / B;

The following code shows an example of using this function:

## See Also

### Vector-scalar division operations

- [vDSP_vsdivi](accelerate/vdsp_vsdivi.md)
- [vDSP_vsdivD](accelerate/vdsp_vsdivd.md)
