Skip to content

Commit 8827bf7

Browse files
committed
qr temporary storage: make intent(out)
1 parent e69e767 commit 8827bf7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/specs/stdlib_linalg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ the full problem is solved. On reduced matrices (`shape(Q)==[m,k]`, `shape(R)==[
930930

931931
`r`: Shall be a rank-2 array of the same kind as `a`, containing the upper triangular matrix `r`. It is an `intent(out)` argument. It should have a shape equal to either `[m,n]` or `[k,n]`, whether the full or the reduced problem is sought for.
932932

933-
`storage` (optional): Shall be a rank-1 array of the same type and kind as `a`, providing working storage for the solver. Its minimum size can be determined with a call to [[stdlib_linalg(module):qr_space(interface)]]. It is an `intent(inout)` argument.
933+
`storage` (optional): Shall be a rank-1 array of the same type and kind as `a`, providing working storage for the solver. Its minimum size can be determined with a call to [[stdlib_linalg(module):qr_space(interface)]]. It is an `intent(out)` argument.
934934

935935
`overwrite_a` (optional): Shall be an input `logical` flag (default: `.false.`). If `.true.`, input matrix `a` will be used as temporary storage and overwritten. This avoids internal data allocation. It is an `intent(in)` argument.
936936

src/stdlib_linalg.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ module stdlib_linalg
478478
!> [optional] Can A data be overwritten and destroyed?
479479
logical(lk), optional, intent(in) :: overwrite_a
480480
!> [optional] Provide pre-allocated workspace, size to be checked with qr_space
481-
${rt}$, intent(inout), optional, target :: storage(:)
481+
${rt}$, intent(out), optional, target :: storage(:)
482482
!> [optional] state return flag. On error if not requested, the code will stop
483483
type(linalg_state_type), optional, intent(out) :: err
484484
end subroutine stdlib_linalg_${ri}$_qr

src/stdlib_linalg_qr.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ submodule (stdlib_linalg) stdlib_linalg_qr
147147
!> [optional] Can A data be overwritten and destroyed?
148148
logical(lk), optional, intent(in) :: overwrite_a
149149
!> [optional] Provide pre-allocated workspace, size to be checked with qr_space
150-
${rt}$, intent(inout), optional, target :: storage(:)
150+
${rt}$, intent(out), optional, target :: storage(:)
151151
!> [optional] state return flag. On error if not requested, the code will stop
152152
type(linalg_state_type), optional, intent(out) :: err
153153

0 commit comments

Comments
 (0)