You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
immutable IndicesFast1D <:IndicesPerformanceend# indices(A, d) is fast
@@ -412,8 +411,9 @@ end
412
411
promote_indices(a::AbstractArray, b::AbstractArray) =_promote_indices(indicesbehavior(a), indicesbehavior(b), a, b)
413
412
_promote_indices(::IndicesStartAt1, ::IndicesStartAt1, a, b) = a
414
413
_promote_indices(::IndicesBehavior, ::IndicesBehavior, a, b) =throw(ArgumentError("types $(typeof(a)) and $(typeof(b)) do not have promote_indices defined"))
415
-
promote_indices(a::Number, b::AbstractArray) = b
416
-
promote_indices(a::AbstractArray, b::Number) = a
414
+
promote_indices(a, b::AbstractArray) = b
415
+
promote_indices(a::AbstractArray, b) = a
416
+
promote_indices(a, b) = a
417
417
418
418
# Strip off the index-changing container---this assumes that `parent`
419
419
# performs such an operation. TODO: since few things in Base need this, it
0 commit comments