---
title: vDSP_minmgv
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_minmgv
---

# vDSP_minmgv

Calculates the single-precision minimum magnitude of a vector.

## Declaration

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

## Parameters

- `__A`: The input vector, A.
- `__IA`: The distance between the elements in the input vector.
- `__C`: The output scalar value, C. If N is zero, the function sets C to infinity.
- `__N`: The number of elements that the function processes.

## Discussion

Discussion This function calculates the minimum magnitude of the first N elements of input vector A, and writes the result to output scalar C.

The following code shows an example of using this function:

## See Also

### Calculating the minimum value of a vector

- [vDSP_minv](accelerate/vdsp_minv.md)
- [vDSP_minvD](accelerate/vdsp_minvd.md)
- [vDSP_minmgvD](accelerate/vdsp_minmgvd.md)
