Skip to content

Commit

Permalink
add type to arg
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszbaran committed Jan 17, 2025
1 parent 61f54c0 commit 4b2c4b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ end
function Random.rand(rng::AbstractRNG, M::AbstractManifold, T::Type, d::Integer; kwargs...)
return [rand(rng, M, T; kwargs...) for _ in 1:d]
end
function Random.rand(M::AbstractManifold, T; vector_at=nothing, kwargs...)
function Random.rand(M::AbstractManifold, T::Type; vector_at=nothing, kwargs...)
if vector_at === nothing
pX = allocate_on(M, T)
else
Expand All @@ -921,7 +921,9 @@ function Random.rand(M::AbstractManifold, T; vector_at=nothing, kwargs...)
rand!(M, pX; vector_at=vector_at, kwargs...)
return pX
end
function Random.rand(rng::AbstractRNG, M::AbstractManifold, T; vector_at=nothing, kwargs...)
function Random.rand(
rng::AbstractRNG, M::AbstractManifold, T::Type; vector_at=nothing, kwargs...
)
if vector_at === nothing
pX = allocate_on(M, T)
else
Expand Down

0 comments on commit 4b2c4b8

Please sign in to comment.