We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7393a18 commit c6bb171Copy full SHA for c6bb171
src/stdlib_linalg_qr.fypp
@@ -181,13 +181,8 @@ submodule (stdlib_linalg) stdlib_linalg_qr
181
use_q_matrix = q1>=m .and. q2>=n
182
183
! Can A be overwritten? By default, do not overwrite
184
- if (use_q_matrix) then
185
- overwrite_a_ = .false._lk
186
- elseif (present(overwrite_a)) then
187
- overwrite_a_ = overwrite_a
188
- else
189
190
- endif
+ overwrite_a_ = .false._lk
+ if (present(overwrite_a) .and. .not.use_q_matrix) overwrite_a_ = overwrite_a
191
192
! Initialize a matrix temporary, or reuse available
193
! storage if possible
0 commit comments