<!--
{
  "availability" : [

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

# simd_double2x3

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

```
struct simd_double2x3
```

## Topics

### Initializers

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

Creates a new matrix with uninitialized memory.

[`init(_:)`](/documentation/simd/simd_double2x3/init(_:)-6xclm)

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

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

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

[`init(_:)`](/documentation/simd/simd_double2x3/init(_:)-6n7k)

Creates a new matrix from an array.

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

Creates a new matrix with the specified vectors as columns.

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

Creates a new matrix with the specified columns.

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

Creates a new matrix with the specified rows.

### Matrix Properties

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

The transpose of the matrix.

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

The columns of the matrix.

### Matrix Creation Functions

[`simd_matrix(_:_:)`](/documentation/simd/simd_matrix(_:_:)-86soe)

Returns a new matrix with the specified columns.

[`simd_matrix_from_rows(_:_:_:)`](/documentation/simd/simd_matrix_from_rows(_:_:_:)-96jbn)

Returns a new matrix with the specified rows.

[`matrix_from_rows(_:_:_:)`](/documentation/simd/matrix_from_rows(_:_:_:)-2ar1l)

Returns a new matrix with the specified rows.

### Math Functions

[`simd_add`](/documentation/simd/simd_add-1zc96)

Returns the sum of two matrices.

[`simd_sub`](/documentation/simd/simd_sub-6k8aw)

Returns the difference of two matrices.

[`matrix_scale`](/documentation/simd/matrix_scale-1fidi)

Returns the product of a scalar value and a matrix.

### Matrix-Scalar Multiplication Functions

[`simd_mul`](/documentation/simd/simd_mul-7g1h8)

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

### Matrix-Vector Multiplication Functions

[`simd_mul`](/documentation/simd/simd_mul-4s2hh)

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

[`matrix_multiply`](/documentation/simd/matrix_multiply-545xs)

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

[`simd_mul`](/documentation/simd/simd_mul-4r4ek)

Returns the product of a 2 x 3 matrix and a two-element vector.

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

Returns the product of a 2 x 3 matrix and a two-element vector.

### Matrix-Matrix Multiplication Functions

[`simd_mul`](/documentation/simd/simd_mul-194di)

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

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

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

[`simd_mul`](/documentation/simd/simd_mul-4ymsr)

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

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

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

[`simd_mul`](/documentation/simd/simd_mul-7yr3s)

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

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

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

### Equality Functions

[`simd_equal`](/documentation/simd/simd_equal-9ko75)

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

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-2gmox)

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

### Linear Combination Function

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

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

### Transpose Function

[`simd_transpose`](/documentation/simd/simd_transpose-84813)

Returns the transpose of a matrix.

### Element Access

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

Accesses the column at the specified position.

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

Accesses the element at the specified position.

### Type Aliases

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

A type alias for a double-precision 2 x 3 matrix.

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

A type alias for a double-precision 2 x 3 matrix.

### Deprecated Symbols

[`matrix_equal(_:_:)`](/documentation/simd/matrix_equal(_:_:)-52vds)

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(_:_:)-61w2n)

Returns a new matrix with the specified columns.

[`matrix_transpose(_:)`](/documentation/simd/matrix_transpose(_:)-97k0o)

Returns the transpose of a matrix.

[`init(_:)`](/documentation/simd/simd_double2x3/init(_:)-98rcw)

Creates a new matrix with the specified matrix.

[`cmatrix`](/documentation/simd/simd_double2x3/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)