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

# vSscal(_:_:_:)

Scales a vector in place.

```
func vSscal(_ n: Int32, _ alpha: Float, _ x: UnsafeMutablePointer<vFloat>)
```

## Parameters

`n`

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

`alpha`

scaling factor.

`x`

vector with `n` elements of type `float`.

## Discussion

Each element of vector `x` is multiplied in place by `alpha`.

---

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)