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

# 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>, _ col3: SIMD2<Double>) -> simd_double4x2
```

## See Also

### Deprecated Symbols

- [matrix_equal(_:_:)](simd/matrix_equal(_:_:)-5v8g0.md)
- [matrix_transpose(_:)](simd/matrix_transpose(_:)-7ttoe.md)
- [init(_:)](simd/simd_double4x2/init(_:)-hovz.md)
- [cmatrix](simd/simd_double4x2/cmatrix.md)
