diff --git a/cpp/include/raft/linalg/detail/svd.cuh b/cpp/include/raft/linalg/detail/svd.cuh index 97200a9919..90a7ddec1f 100644 --- a/cpp/include/raft/linalg/detail/svd.cuh +++ b/cpp/include/raft/linalg/detail/svd.cuh @@ -66,15 +66,9 @@ void svdQR(const raft::handle_t& handle, char jobu = 'S'; char jobvt = 'A'; - if (!gen_left_vec) { - char new_u = 'N'; - strcpy(&jobu, &new_u); - } + if (!gen_left_vec) { jobu = 'N'; } - if (!gen_right_vec) { - char new_vt = 'N'; - strcpy(&jobvt, &new_vt); - } + if (!gen_right_vec) { jobvt = 'N'; } RAFT_CUSOLVER_TRY(cusolverDngesvd(cusolverH, jobu,