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

# matrix_from_columns(_:_:_:)

Returns a new matrix with the specified columns.

## Declaration

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

## See Also

### Deprecated Symbols

- [matrix_invert(_:)](simd/matrix_invert(_:)-2lv98.md)
- [matrix_from_diagonal(_:)](simd/matrix_from_diagonal(_:)-3jtgg.md)
- [matrix_determinant(_:)](simd/matrix_determinant(_:)-4bxkm.md)
- [matrix_equal(_:_:)](simd/matrix_equal(_:_:)-9tdua.md)
- [matrix_transpose(_:)](simd/matrix_transpose(_:)-3ectl.md)
- [init(_:)](simd/simd_double3x3/init(_:)-2o4jh.md)
- [cmatrix](simd/simd_double3x3/cmatrix.md)
