<!--
{
  "availability" : [
    "Swift: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/matrix_equal(_:_:)-2m44x",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "s:4simd12matrix_equalySbSo0A9_float4x3a_ADtF"
  },
  "title" : "matrix_equal(_:_:)"
}
-->

# matrix_equal(_:_:)

Returns true if every element in a matrix is exactly equal to the corresponding element in a second matrix, and otherwise returns false.

```
func matrix_equal(_ lhs: simd_float4x3, _ rhs: simd_float4x3) -> Bool
```

---

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)