We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86249a commit 9eeb654Copy full SHA for 9eeb654
src/rand_tangent.jl
@@ -36,7 +36,7 @@ rand_tangent(rng::AbstractRNG, x::Array) = _compress_notangent(rand_tangent.(Ref
36
# All other AbstractArray's can be handled using the ProjectTo mechanics.
37
# and follow the same requirements
38
function rand_tangent(rng::AbstractRNG, x::AbstractArray)
39
- return _compress_notangent(ProjectTo(x)(rand_tangent(collect(x))))
+ return _compress_notangent(ProjectTo(x)(rand_tangent(rng, collect(x))))
40
end
41
42
# TODO: arguably ProjectTo should handle this for us for AbstactArrays
0 commit comments