---
title: "matrix_from_rows(_:_:_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/matrix_from_rows(_:_:_:_:)-51dz4"
---

# matrix_from_rows(_:_:_:_:)

Returns a new matrix with the specified rows.

## Declaration

```swift
func matrix_from_rows(_ row0: SIMD2<Float>, _ row1: SIMD2<Float>, _ row2: SIMD2<Float>, _ row3: SIMD2<Float>) -> simd_float2x4
```

## See Also

### Matrix Creation Functions

- [simd_matrix(_:_:)](simd/simd_matrix(_:_:)-7ayva.md)
- [simd_matrix_from_rows(_:_:_:_:)](simd/simd_matrix_from_rows(_:_:_:_:)-7s7pv.md)
