-
Notifications
You must be signed in to change notification settings - Fork 232
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
Add and fix some aqua tests #1965
Conversation
163d507
to
df8b1d5
Compare
Can you explain why some of these changes are necessary? They only seem to add duplicate definitions with manually-split type signatures, which doesn't seem great. |
Sure, here's an explanation based on my best understanding. Let's take this fix as an example: master LinearAlgebra.triu(A::Union{$SparseMatrixType{T,M}, Transpose{T,<:$SparseMatrixType}, Adjoint{T,<:$SparseMatrixType}}) where {T,M} =
$SparseMatrixType( triu(CuSparseMatrixCOO(A), 0) ) fix LinearAlgebra.triu(A::$SparseMatrixType{T,M}) where {T,M} =
$SparseMatrixType( triu(CuSparseMatrixCOO(A), 0) )
LinearAlgebra.triu(A::Union{Transpose{T,<:$SparseMatrixType}, Adjoint{T,<:$SparseMatrixType}}) where {T} =
$SparseMatrixType( triu(CuSparseMatrixCOO(A), 0) ) In the main commit, Julia creates methods for each element of the LinearAlgebra.triu(A::Transpose{T,<:$SparseMatrixType) where {T,M} =
$SparseMatrixType( triu(CuSparseMatrixCOO(A), 0) ) In this method definition, type I apologize about the duplication, I tried my best to keep duplication minimal (e.g., creating a shared |
OK thanks, that clears it up. Pushed some additional things, this should be good to go if CI agrees. |
Thanks! |
This PR adds and fixes some aqua tests. Closes #1964.