@@ -105,7 +105,9 @@ sub_materialize(::BlockLayout{<:AbstractBandedLayout}, V, _) = BlockBandedMatrix
105105strides (V:: SubBlockSkylineMatrix{<:Any,LL,UU,<:Union{BlockRange1,Block1},Block1} ) where {LL,UU} =
106106 (1 ,parent (V). block_sizes. block_strides[Int (parentindices (V)[2 ]. block)])
107107
108-
108+ function Base. cconvert (:: Type{Ptr{T}} , V:: SubBlockSkylineMatrix{T,LL,UU,<:Union{BlockRange1,Block1},Block1} ) where {T,LL,UU}
109+ V
110+ end
109111function unsafe_convert (:: Type{Ptr{T}} , V:: SubBlockSkylineMatrix{T,LL,UU,<:Union{BlockRange1,Block1},Block1} ) where {T,LL,UU}
110112 A = parent (V)
111113 JR = parentindices (V)[2 ]
117119strides (V:: SubBlockSkylineMatrix{<:Any,LL,UU,<:BlockRange1,<:BlockIndexRange1} ) where {LL,UU} =
118120 (1 ,parent (V). block_sizes. block_strides[Int (Block (parentindices (V)[2 ]))])
119121
122+ function Base. cconvert (:: Type{Ptr{T}} , V:: SubBlockSkylineMatrix{T,LL,UU,<:BlockRange1,<:BlockIndexRange1} ) where {T,LL,UU}
123+ V
124+ end
120125function unsafe_convert (:: Type{Ptr{T}} , V:: SubBlockSkylineMatrix{T,LL,UU,<:BlockRange1,<:BlockIndexRange1} ) where {T,LL,UU}
121126 A = parent (V)
122127 JR = parentindices (V)[2 ]
@@ -127,6 +132,9 @@ function unsafe_convert(::Type{Ptr{T}}, V::SubBlockSkylineMatrix{T,LL,UU,<:Block
127132 p + sizeof (T)* (JR. block. indices[1 ][1 ]- 1 )* stride (V,2 )
128133end
129134
135+ function Base. cconvert (:: Type{Ptr{T}} , V:: SubBlockSkylineMatrix{T,LL,UU,BlockIndexRange1,BlockIndexRange1} ) where {T,LL,UU}
136+ V
137+ end
130138function unsafe_convert (:: Type{Ptr{T}} , V:: SubBlockSkylineMatrix{T,LL,UU,BlockIndexRange1,BlockIndexRange1} ) where {T,LL,UU}
131139 A = parent (V)
132140 JR = parentindices (V)[2 ]
0 commit comments