Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove overly restrictive Strided* constraints in LinearAlgebra #35420

Closed
wants to merge 3 commits into from

Conversation

YingboMa
Copy link
Contributor

@YingboMa YingboMa commented Apr 9, 2020

@@ -641,7 +641,7 @@ function rcswap!(i::Integer, j::Integer, X::StridedMatrix{<:Number})
end

"""
log(A{T}::StridedMatrix{T})
log(A{T}::AbstractMatrix{T})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just came across this: the A{T} looks wrong here. Should be simply A?

@mbauman
Copy link
Member

mbauman commented Apr 10, 2020

So awesome! Previously partially attempted in #32147 (and I think elsewhere, too). Also looks like it fixes JuliaLang/LinearAlgebra.jl#620. Should also fix JuliaLang/LinearAlgebra.jl#345, JuliaLang/LinearAlgebra.jl#377, #32120, and JuliaLang/LinearAlgebra.jl#587.

But the challenge is in all those ambiguities. This is a bit of a rats nest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overly restrictive type constraints in LinearAlgebra
4 participants