<!--
{
  "availability" : [
    "iOS: 8.0.0 - 14.0.0",
    "iPadOS: 8.0.0 - 14.0.0",
    "macCatalyst: 13.1.0 - 14.0.0",
    "macOS: 10.10.0 - 11.0.0",
    "tvOS: 8.0.0 - 14.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 1.0.0 - 7.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/la_normalized_vector(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@la_normalized_vector"
  },
  "title" : "la_normalized_vector(_:_:)"
}
-->

# la_normalized_vector(_:_:)

```
func la_normalized_vector(_ vector: la_object_t, _ vector_norm: la_norm_t) -> la_object_t
```

## Discussion\abstract “Normalizes” a vector or matrix.
\discussion The returned object has the same direction as the first operand, and has
norm 1 in the specified vector norm.  If the input vector is zero, it cannot
be meaningfully normalized and the returned object is also zero.  If the
parameter vector is not a vector or matrix, or if the vector_norm parameter
is not a supported value, the returned object has status
LA_INVALID_PARAMETER_ERROR.

---

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)