Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Sep 20, 2023
1 parent fd7a622 commit 2f38cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NDTensors/src/tensor/tensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ conj(T::Tensor) = conj(AllowAlias(), T)
randn!!(T::Tensor) = randn!!(Random.default_rng(), T)
function randn!!(rng::AbstractRNG, T::Tensor)
## TODO for functions like this we should really call generic_randn
T = allocate(T)
(randn!(rng, T); T)
T = allocate(T)
return (randn!(rng, T); T)
end

Random.randn!(T::Tensor) = randn!(Random.default_rng(), T)
Expand Down

0 comments on commit 2f38cef

Please sign in to comment.