Skip to content

Commit

Permalink
Fix fill random
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Jan 12, 2025
1 parent 8a41dc9 commit 2664641
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion btas/generic/cp.h
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ namespace btas {

template<typename Generator, typename Distribution>
Tensor make_random_factor(ind_t row, ind_t col, Generator gen, Distribution dist){
return fill_random(Tensor(row, col), gen, dist);
Tensor T(row, col);
fill_random(T, gen, dist);
return T;
}

/// \param[in] factor Which factor matrix to normalize, returns
Expand Down

0 comments on commit 2664641

Please sign in to comment.