Skip to content

Commit

Permalink
sketching operator scaling in preconditioner generation (see issue #62)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyjmurray committed Jan 17, 2024
1 parent aae08e2 commit 01278cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RandLAPACK/comps/rl_preconditioners.hh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ void rpc_data_svd(
A, lda,
0.0, A_sk, lda_sk
);
blas::scal(d*n, 1.0/std::sqrt(d), A_sk, 1);

// step 2: apply an LAPACK SVD function to A_sk and process the output.
if (layout == Layout::ColMajor) {
Expand Down

0 comments on commit 01278cb

Please sign in to comment.