File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,30 +57,6 @@ function _interleave(a::NTuple{N}, b::NTuple{N}) where {N}
5757 return (a[1 ], b[1 ], _interleave (tail (a), tail (b))... )
5858end
5959
60- # Low-overhead implementation of `copyto!` for specific case of `stride(B, 1) < stride(B, 2)`
61- # used in indexmanipulations: avoids the overhead of Strided.jl
62- function _copyto! (A:: StridedView{<:Any, 1} , B:: StridedView{<:Any, 2} )
63- length (A) == length (B) || throw (DimensionMismatch ())
64-
65- Adata = parent (A)
66- Astr = stride (A, 1 )
67- IA = A. offset
68-
69- Bdata = parent (B)
70- Bstr = strides (B)
71-
72- IB_1 = B. offset
73- @inbounds for _ in axes (B, 2 )
74- IB = IB_1
75- for _ in axes (B, 1 )
76- Adata[IA += Astr] = Bdata[IB += Bstr[1 ]]
77- end
78- IB_1 += Bstr[2 ]
79- end
80-
81- return A
82- end
83-
8460@static if VERSION < v " 1.11" # TODO : remove once support for v1.10 is dropped
8561 _allequal (f, xs) = allequal (Base. Generator (f, xs))
8662else
You can’t perform that action at this time.
0 commit comments