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 2c5a8bb commit 9736cebCopy full SHA for 9736ceb
src/operations/transpose.jl
@@ -68,3 +68,10 @@ LinearAlgebra.adjoint(A::GBVecOrMat) = transpose(A)
68
#arrrrgh, type piracy.
69
# TODO: avoid this if possible
70
LinearAlgebra.transpose(::Nothing) = nothing
71
+
72
+# fix unsafe_converts to be safer for GrB types.
73
+# should fix at least unsafe passing of `mask`.
74
+# Base.unsafe_convert(::Type{Ptr{T}}, A::Adjoint{<:Real, <:AbstractVecOrMat}) where {T} =
75
+# Base.unsafe_convert(Ptr{T}, A.parent)
76
+Base.unsafe_convert(::Type{Ptr{T}}, A::Transpose{<:Any, <:AbstractGBArray}) where {T} =
77
+Base.unsafe_convert(Ptr{T}, copy(A))
0 commit comments