---
title: vDSP_rmsqv
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_rmsqv
---

# vDSP_rmsqv

Calculates the root mean square of a single-precision vector.

## Declaration

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

## Parameters

- `__A`: The input vector.
- `__IA`: The distance between the elements in the input vector.
- `__C`: On output, the root mean square of the elements in the input vector.
- `__N`: The number of elements that the function processes.

## Discussion

Discussion This function calculates the root mean square of the first N elements of the input vector and writes the result to the output scalar parameter, C. The following code shows an example of using vDSP_rmsqv:

## See Also

### Calculating the root mean square of a vector

- [vDSP_rmsqvD](accelerate/vdsp_rmsqvd.md)
