<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/max(_:_:)-696e3",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "s:4simd3maxys5SIMD4Vys5Int32VGAG_AFtF"
  },
  "title" : "max(_:_:)"
}
-->

# max(_:_:)

Returns the maximum value of each element in a vector.

```
func max(_ vector: SIMD4<Int32>, _ scalar: Int32) -> SIMD4<Int32>
```

---

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)