# qr

`import { qr } from "destack:tensor";`

Return the QR factorization.

```ds title="qr"
export function qr<T: Float>(matrix: Tensor<T, 2>, options?: FactorizationOptions<T, 2> | undefined): (Tensor<T, 2>, Tensor<T, 2>)
```

[language/library/src/tensor/linalg.ds:93:98](https://github.com/destack-sh/destack/blob/main/language/library/src/tensor/linalg.ds#L93-L98)
