Skip to content

Commit

Permalink
[Docs] Add random number generator in docstring for randomITensor (#1435
Browse files Browse the repository at this point in the history
)
  • Loading branch information
stecrotti authored May 14, 2024
1 parent e02b8b3 commit 6370f18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/itensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,8 @@ function dense(A::ITensor)
end

"""
randomITensor([::Type{ElT <: Number} = Float64, ]inds)
randomITensor([::Type{ElT <: Number} = Float64, ]inds::Index...)
randomITensor([rng=Random.default_rng()], [ElT=Float64], inds)
randomITensor([rng=Random.default_rng()], [ElT=Float64], inds::Index...)
Construct an ITensor with type `ElT` and indices `inds`, whose elements are
normally distributed random numbers. If the element type is not specified,
Expand Down

0 comments on commit 6370f18

Please sign in to comment.