Skip to content

Commit 05c3eba

Browse files
committed
delete scratch code
1 parent 18736ea commit 05c3eba

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/stridelayout.jl

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -465,29 +465,6 @@ end
465465
return Expr(:block, Expr(:meta, :inline), out)
466466
end
467467

468-
#=
469-
470-
function strides(a::ReinterpretArray)
471-
a.parent isa StridedArray || ArgumentError("Parent must be strided.") |> throw
472-
size_to_strides(1, size(a)...)
473-
end
474-
475-
strides(a::Union{DenseArray,StridedReshapedArray,StridedReinterpretArray}) = size_to_strides(1, size(a)...)
476-
@generated function _strides(_::Base.ReinterpretArray{T, N, S, A, true}, s::NTuple{N}, ::Contiguous{1}) where {T, N, S, D, A <: Array{S,D}}
477-
stup = Expr(:tuple, :(One()))
478-
if D < N
479-
push!(stup.args, Expr(:call, Expr(:curly, :StaticInt, sizeof(S) ÷ sizeof(T))))
480-
end
481-
for n ∈ 2+(D < N):N
482-
push!(stup.args, Expr(:ref, :s, n))
483-
end
484-
quote
485-
$(Expr(:meta,:inline))
486-
@inbounds $stup
487-
end
488-
end
489-
=#
490-
491468
"""
492469
offsets(A) -> Tuple
493470

0 commit comments

Comments
 (0)