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

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

Returns a new matrix with the specified rows.

## Declaration

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

## See Also

### Matrix Creation Functions

- [simd_matrix(_:_:_:_:)](simd/simd_matrix(_:_:_:_:)-4p5ox.md)
- [simd_matrix_from_rows(_:_:_:_:)](simd/simd_matrix_from_rows(_:_:_:_:)-34hac.md)
- [simd_matrix4x4(_:)](simd/simd_matrix4x4(_:)-20lv7.md)
