<!--
{
  "availability" : [

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

# simd_float3x4

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

```
struct simd_float3x4
```

## Topics

### Initializers

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

Creates a new matrix with uninitialized memory.

[`init(_:)`](/documentation/simd/simd_float3x4/init(_:)-2os7r)

Creates a new matrix with the specified scalar value on the main diagonal.

[`init(diagonal:)`](/documentation/simd/simd_float3x4/init(diagonal:))

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

[`init(_:)`](/documentation/simd/simd_float3x4/init(_:)-4w4et)

Creates a new matrix from an array.

[`init(_:_:_:)`](/documentation/simd/simd_float3x4/init(_:_:_:))

Creates a new matrix with the specified vectors as columns.

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

Creates a new matrix with the specified columns.

[`init(rows:)`](/documentation/simd/simd_float3x4/init(rows:))

Creates a new matrix with the specified rows.

### Matrix Properties

[`transpose`](/documentation/simd/simd_float3x4/transpose)

The transpose of the matrix.

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

The columns of the matrix.

### Matrix Creation Functions

[`simd_matrix(_:_:_:)`](/documentation/simd/simd_matrix(_:_:_:)-1vwb0)

Returns a new matrix with the specified columns.

[`simd_matrix_from_rows(_:_:_:_:)`](/documentation/simd/simd_matrix_from_rows(_:_:_:_:)-6irzy)

Returns a new matrix with the specified rows.

[`matrix_from_rows(_:_:_:_:)`](/documentation/simd/matrix_from_rows(_:_:_:_:)-4bn2a)

Returns a new matrix with the specified rows.

### Equality Functions

[`simd_equal`](/documentation/simd/simd_equal-8ywka)

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-7vp0d)

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-8ea8s)

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

### Math Functions

[`simd_add`](/documentation/simd/simd_add-2poit)

Returns the sum of two matrices.

[`simd_sub`](/documentation/simd/simd_sub-8zkd6)

Returns the difference of two matrices.

[`matrix_scale`](/documentation/simd/matrix_scale-27nie)

Returns the product of a scalar value and a matrix.

### Matrix-Scalar Multiplication Functions

[`simd_mul`](/documentation/simd/simd_mul-63lgs)

Returns the product of a scalar value and a 3 x 4 matrix.

### Matrix-Vector Multiplication Functions

[`simd_mul`](/documentation/simd/simd_mul-11qnx)

Returns the product of a four-element vector and a 3 x 4 matrix.

[`matrix_multiply`](/documentation/simd/matrix_multiply-4sxh3)

Returns the product of a four-element vector and a 3 x 4 matrix.

[`simd_mul`](/documentation/simd/simd_mul-9abtt)

Returns the product of a 3 x 4 matrix and a three-element vector.

[`matrix_multiply`](/documentation/simd/matrix_multiply-5tf39)

Returns the product of a 3 x 4 matrix and a three-element vector.

### Matrix-Matrix Multiplication Functions

[`simd_mul`](/documentation/simd/simd_mul-22ry5)

Returns the product of a 2 x 4 matrix and a 3 x 2 matrix.

[`matrix_multiply`](/documentation/simd/matrix_multiply-2mmjb)

Returns the product of a 2 x 4 matrix and a 3 x 2 matrix.

[`simd_mul`](/documentation/simd/simd_mul-3uxip)

Returns the product of a 3 x 4 matrix and a 3 x 3 matrix.

[`matrix_multiply`](/documentation/simd/matrix_multiply-1a1tt)

Returns the product of a 3 x 4 matrix and a 3 x 3 matrix.

[`simd_mul`](/documentation/simd/simd_mul-8ylcd)

Returns the product of a 4 x 4 matrix and a 3 x 4 matrix.

[`matrix_multiply`](/documentation/simd/matrix_multiply-15ddt)

Returns the product of a 4 x 4 matrix and a 3 x 4 matrix.

### Linear Combination Function

[`simd_linear_combination`](/documentation/simd/simd_linear_combination-q4rt)

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

### Transpose Function

[`simd_transpose`](/documentation/simd/simd_transpose-10krq)

Returns the transpose of a matrix.

### Element Access

[`subscript(_:)`](/documentation/simd/simd_float3x4/subscript(_:))

Accesses the column at the specified position.

[`subscript(_:_:)`](/documentation/simd/simd_float3x4/subscript(_:_:))

Accesses the element at the specified position.

### Type Aliases

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

A type alias for a single-precision 3 x 4 matrix.

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

A type alias for a single-precision 3 x 4 matrix.

### Deprecated Symbols

[`matrix_equal(_:_:)`](/documentation/simd/matrix_equal(_:_:)-6el88)

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

[`matrix_from_columns(_:_:_:)`](/documentation/simd/matrix_from_columns(_:_:_:)-5nhl4)

Returns a new matrix with the specified columns.

[`matrix_transpose(_:)`](/documentation/simd/matrix_transpose(_:)-6ygo1)

Returns the transpose of a matrix.

[`init(_:)`](/documentation/simd/simd_float3x4/init(_:)-8fk31)

Creates a new matrix with the specified matrix.

[`cmatrix`](/documentation/simd/simd_float3x4/cmatrix)

Returns the matrix as the corresponding C matrix type.



---

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)