---
title: vDSP_svdiv
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_svdiv
---

# vDSP_svdiv

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

## Declaration

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

## Parameters

- `__A`: The input scalar, A.
- `__B`: The input vector, B.
- `__IB`: The distance between the elements in the input vector.
- `__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 scalar value A and vector B, and writes the result to vector C, as follows:  for (n = 0; n < N; ++n)     C[n] = A / B[n];

The following code shows an example of using this function:

## See Also

### Scalar-vector division operations

- [vDSP_svdivD](accelerate/vdsp_svdivd.md)
