Skip to content

Commit 5290a90

Browse files
authored
typo
1 parent 375386b commit 5290a90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rand_tangent.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rand_tangent(rng::AbstractRNG, ::BigFloat) = big(randn(rng))
1919

2020
rand_tangent(rng::AbstractRNG, x::StridedArray) = rand_tangent.(Ref(rng), x)
2121
rand_tangent(rng::AbstractRNG, x::Adjoint) = adjoint(rand_tangent(rng, parent(x)))
22-
rand_tangent(rng::AbstractRNG, x::Tangent) = tangent(rand_tangent(rng, parent(x)))
22+
rand_tangent(rng::AbstractRNG, x::Transpose) = transpose(rand_tangent(rng, parent(x)))
2323

2424
function rand_tangent(rng::AbstractRNG, x::T) where {T<:Tuple}
2525
return Tangent{T}(rand_tangent.(Ref(rng), x)...)

0 commit comments

Comments
 (0)