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

Update SweepOperator.jl #10

Closed
wants to merge 2 commits into from
Closed

Conversation

matthieugomez
Copy link

@matthieugomez matthieugomez commented Dec 4, 2023

The only necessary change is for syrk!(A, α, x) where {T} as it produces a warning with Julia 1.10

@@ -25,7 +25,7 @@ function sweep!(A::AMat, k::Integer, inv::Bool = false)
sweep_with_buffer!(Vector{eltype(A)}(undef, size(A, 2)), A, k, inv)
end

function sweep!(A::AMat{T}, ks::AVec{I}, inv::Bool = false) where {T<:BlasFloat, I<:Integer}
function sweep!(A::AMat{T}, ks::AVec{<:Integer}, inv::Bool = false) where {T<:BlasFloat}
Copy link
Owner

Choose a reason for hiding this comment

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

why treat I and T differently here?

Copy link
Author

Choose a reason for hiding this comment

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

cause T is used in the function body while I is not — anyway, just a matter of style.

@joshday
Copy link
Owner

joshday commented Dec 4, 2023

Thanks for the PR! I stole the necessary part, hope you don't mind! I'll get a new release out ASAP

@joshday joshday closed this Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants