File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -512,15 +512,15 @@ Base.@propagate_inbounds parentcols(ind::SubIndex, idx) =
512512
513513Base. @propagate_inbounds parentcols (ind:: SubIndex , :: Colon ) = ind. cols
514514
515- function SubIndex (parent:: AbstractIndex , cols:: AbstractUnitRange{Int} )
516- l = last (cols)
517- f = first (cols)
518- if ! checkindex (Bool, Base. OneTo (length (parent)), cols)
519- throw (BoundsError (parent, cols))
520- end
521- remap = ( 1 : l) .- f .+ 1
522- return SubIndex (parent, cols, remap)
523- end
515+ # function SubIndex(parent::AbstractIndex, cols::AbstractUnitRange{Int})
516+ # l = last(cols)
517+ # f = first(cols)
518+ # if !checkindex(Bool, Base.OneTo(length(parent)), cols)
519+ # throw(BoundsError(parent, cols))
520+ # end
521+ # remap = collect(( 1:l) .- f .+ 1)
522+ # return SubIndex(parent, cols, remap)
523+ # end
524524
525525function SubIndex (parent:: AbstractIndex , cols:: AbstractVector{Int} )
526526 ncols = length (parent)
You can’t perform that action at this time.
0 commit comments