<!--
{
  "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_scale_with_float(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@la_scale_with_float"
  },
  "title" : "la_scale_with_float(_:_:)"
}
-->

# la_scale_with_float(_:_:)

```
func la_scale_with_float(_ matrix: la_object_t, _ scalar: Float) -> la_object_t
```

## Discussion\abstract Multiply a matrix or vector by a scalar given by a float.
\discussion Returns a matrix whose entries are the product of the scalar and the
corresponding element of the source matrix.  If the source object is not
a vector or matrix, the returned object will have status
LA_INVALID_PARAMETER_ERROR.

If the scalar type of matrix is not float LA_PRECISION_MISMATCH_ERROR is
returned.

---

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)