Skip to content

Commit e3db36d

Browse files
committed
improve qr description
1 parent 478f68d commit e3db36d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/specs/stdlib_linalg.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,9 @@ is orthonormal and \( R \) is upper-triangular. Matrix \( A \) has size `[m,n]`,
914914

915915
The results are returned in output matrices \( Q \) and \(R \), that have the same type and kind as \( A \).
916916
Given `k = min(m,n)`, one can write \( A = \( Q_1 Q_2 \) \cdot \( \frac{R_1}{0}\) \).
917-
Because the lower rows of \( R \) are zeros, the user may require to return full matrices (provide `shape(Q)==[m,m]`, `shape(R)==[m,n]`)
918-
or reduced matrices: \( A = Q_1 R_1 \) (provide `shape(Q)==[m,k]`, `shape(R)==[k,n]`).
917+
Because the lower rows of \( R \) are zeros, a reduced problem \( A = Q_1 R_1 \) may be solved. The size of
918+
the input arguments determines what problem is solved: on full matrices (`shape(Q)==[m,m]`, `shape(R)==[m,n]`),
919+
the full problem is solved. On reduced matrices (`shape(Q)==[m,k]`, `shape(R)==[k,n]`), the reduced problem is solved.
919920

920921
### Syntax
921922

0 commit comments

Comments
 (0)