---
title: "matrix_from_columns(_:_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/matrix_from_columns(_:_:_:)-9wapk"
---

# matrix_from_columns(_:_:_:)

Returns a new matrix with the specified columns.

## Declaration

```swift
func matrix_from_columns(_ col0: SIMD2<Double>, _ col1: SIMD2<Double>, _ col2: SIMD2<Double>) -> simd_double3x2
```

## See Also

### Deprecated Symbols

- [matrix_equal(_:_:)](simd/matrix_equal(_:_:)-3dnu.md)
- [matrix_transpose(_:)](simd/matrix_transpose(_:)-7ueg2.md)
- [init(_:)](simd/simd_double3x2/init(_:)-6yyfq.md)
- [cmatrix](simd/simd_double3x2/cmatrix.md)
