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 3d10d39 commit 38bae4dCopy full SHA for 38bae4d
src/stdlib_linalg_pinv.fypp
@@ -72,7 +72,7 @@ submodule(stdlib_linalg) stdlib_linalg_pseudoinverse
72
! Get pseudo-inverse: A_pinv = V * (diag(1/s) * U^H) = V * (U * diag(1/s))^H
73
74
! 1) compute (U * diag(1/s)) in-place
75
- forall (i=1:m,j=1:k) u(i,j) = s(j)*u(i,j)
+ do concurrent (i=1:m,j=1:k); u(i,j) = s(j)*u(i,j); end do
76
77
! 2) commutate matmul: A_pinv = V^H * (U * diag(1/s))^H = ((U * diag(1/s)) * V^H)^H.
78
! This avoids one matrix transpose
0 commit comments