<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vSnorm2(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vSnorm2"
  },
  "title" : "vSnorm2(_:_:)"
}
-->

# vSnorm2(_:_:)

Finds the Euclidean length of a vector.

```
func vSnorm2(_ count: Int32, _ x: UnsafePointer<vFloat>) -> Float
```

## Parameters

`count`

Number of elements in the vector `x`; must be a multiple of 4.

`x`

A vector array of `float` values.

## Return Value

The Euclidean length of `x`.

## Discussion

Input is not scaled.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)