<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/simd_half3x3",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "c:@SA@simd_half3x3"
  },
  "title" : "simd_half3x3"
}
-->

# simd_half3x3

A matrix of three columns and three rows that contains half-precision values.

```
struct simd_half3x3
```

## Topics

### Initializers

[`init()`](/documentation/simd/simd_half3x3/init())

Creates a new matrix with uninitialized memory.

[`init(columns:)`](/documentation/simd/simd_half3x3/init(columns:))

Creates a new matrix with the specified columns.

### Matrix properties

[`columns`](/documentation/simd/simd_half3x3/columns)

The columns of the matrix.

### Matrix constants

[`matrix_identity_half3x3`](/documentation/simd/matrix_identity_half3x3)

A 3 x 3 identity matrix.

### Matrix creation functions

[`simd_matrix(_:_:_:)`](/documentation/simd/simd_matrix(_:_:_:)-2bbz7)

Returns a new matrix with the specified columns.

[`simd_matrix_from_rows(_:_:_:)`](/documentation/simd/simd_matrix_from_rows(_:_:_:)-60h5f)

Returns a new matrix with the specified rows.

[`simd_diagonal_matrix`](/documentation/simd/simd_diagonal_matrix-2nygl)

Returns a new matrix with the specified vector on the main diagonal.

### Math functions

[`simd_add`](/documentation/simd/simd_add-6lf10)

Returns the sum of two matrices.

[`simd_sub`](/documentation/simd/simd_sub-5pv8e)

Returns the difference of two matrices.

### Matrix-scalar multiplication functions

[`matrix_scale`](/documentation/simd/matrix_scale-7i2z6)

Returns the product of a scalar value and a matrix.

### Matrix-vector multiplication functions

[`matrix_multiply`](/documentation/simd/matrix_multiply-7d4xh)

Returns the product of a vector and a matrix.

### Equality functions

[`simd_equal`](/documentation/simd/simd_equal-75e79)

Returns true if every element in a matrix is exactly equal to the corresponding element in a second matrix.

[`simd_almost_equal_elements`](/documentation/simd/simd_almost_equal_elements-9mm59)

Returns true if every element in a matrix is within a specified tolerance to the corresponding element in a second matrix.

[`simd_almost_equal_elements_relative`](/documentation/simd/simd_almost_equal_elements_relative-2mbzd)

Returns true if every element in a matrix is within a specified single-precision relative tolerance to the corresponding element in a second matrix.

### Determinant and inverse functions

[`simd_determinant`](/documentation/simd/simd_determinant-62ip1)

Returns the determinant of the specified matrix.

[`simd_inverse`](/documentation/simd/simd_inverse-7h4e5)

Returns the inverse of the specified matrix.

### Linear combination function

[`simd_linear_combination`](/documentation/simd/simd_linear_combination-9ties)

Returns the linear combination of two scalar values and two matrices.

### Transpose function

[`simd_transpose`](/documentation/simd/simd_transpose-8n4rp)

Returns the transpose of a matrix.



---

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)