@@ -1350,4 +1350,93 @@ export quadgk
13501350@deprecate map! {F} (f:: F , A:: AbstractArray ) map! (f, A, A)
13511351@deprecate asyncmap! (f, c; ntasks= 0 , batch_size= nothing ) asyncmap! (f, c, c; ntasks= ntasks, batch_size= batch_size)
13521352
1353+ # Deprecate manually vectorized abs2 methods in favor of compact broadcast syntax
1354+ @deprecate abs2 (x:: AbstractSparseVector ) abs2 .(x)
1355+
1356+ # Deprecate manually vectorized trigonometric and hyperbolic functions in favor of compact broadcast syntax
1357+ for f in (:sec , :sech , :secd , :asec , :asech ,
1358+ :csc , :csch , :cscd , :acsc , :acsch ,
1359+ :cot , :coth , :cotd , :acot , :acoth )
1360+ @eval @deprecate $ f {T<:Number} (A:: AbstractArray{T} ) $ f .(A)
1361+ end
1362+
1363+ # Deprecate manually vectorized clamp methods in favor of compact broadcast syntax
1364+ @deprecate clamp (A:: AbstractArray , lo, hi) clamp .(A, lo, hi)
1365+
1366+ # Deprecate manually vectorized round methods in favor of compact broadcast syntax
1367+ @deprecate round (M:: Bidiagonal ) round .(M)
1368+ @deprecate round (M:: Tridiagonal ) round .(M)
1369+ @deprecate round (M:: SymTridiagonal ) round .(M)
1370+ @deprecate round {T<:Integer} (:: Type{T} , x:: AbstractArray ) round .(T, x)
1371+ @deprecate round {T<:Integer} (:: Type{T} , x:: AbstractArray , r:: RoundingMode ) round .(x, r)
1372+ @deprecate round (x:: AbstractArray , r:: RoundingMode ) round .(x, r)
1373+ @deprecate round (x:: AbstractArray , digits:: Integer , base:: Integer = 10 ) round .(x, digits, base)
1374+
1375+ # Deprecate manually vectorized trunc methods in favor of compact broadcast syntax
1376+ @deprecate trunc (M:: Bidiagonal ) trunc .(M)
1377+ @deprecate trunc (M:: Tridiagonal ) trunc .(M)
1378+ @deprecate trunc (M:: SymTridiagonal ) trunc .(M)
1379+ @deprecate trunc {T<:Integer} (:: Type{T} , x:: AbstractArray ) trunc .(T, x)
1380+ @deprecate trunc (x:: AbstractArray , digits:: Integer , base:: Integer = 10 ) trunc .(x, digits, base)
1381+
1382+ # Deprecate manually vectorized floor methods in favor of compact broadcast syntax
1383+ @deprecate floor (M:: Bidiagonal ) floor .(M)
1384+ @deprecate floor (M:: Tridiagonal ) floor .(M)
1385+ @deprecate floor (M:: SymTridiagonal ) floor .(M)
1386+ @deprecate floor {T<:Integer} (:: Type{T} , A:: AbstractArray ) floor .(T, A)
1387+ @deprecate floor (A:: AbstractArray , digits:: Integer , base:: Integer = 10 ) floor .(A, digits, base)
1388+
1389+ # Deprecate manually vectorized ceil methods in favor of compact broadcast syntax
1390+ @deprecate ceil (M:: Bidiagonal ) ceil .(M)
1391+ @deprecate ceil (M:: Tridiagonal ) ceil .(M)
1392+ @deprecate ceil (M:: SymTridiagonal ) ceil .(M)
1393+ @deprecate ceil {T<:Integer} (:: Type{T} , x:: AbstractArray ) ceil .(T, x)
1394+ @deprecate ceil (x:: AbstractArray , digits:: Integer , base:: Integer = 10 ) ceil .(x, digits, base)
1395+
1396+ # Deprecate manually vectorized `big` methods in favor of compact broadcast syntax
1397+ @deprecate big (r:: UnitRange ) big .(r)
1398+ @deprecate big (r:: StepRange ) big .(r)
1399+ @deprecate big (r:: FloatRange ) big .(r)
1400+ @deprecate big (r:: LinSpace ) big .(r)
1401+ @deprecate big {T<:Integer,N} (x:: AbstractArray{T,N} ) big .(x)
1402+ @deprecate big {T<:AbstractFloat,N} (x:: AbstractArray{T,N} ) big .(x)
1403+ @deprecate big (A:: LowerTriangular ) big .(A)
1404+ @deprecate big (A:: UpperTriangular ) big .(A)
1405+ @deprecate big (A:: Base.LinAlg.UnitLowerTriangular ) big .(A)
1406+ @deprecate big (A:: Base.LinAlg.UnitUpperTriangular ) big .(A)
1407+ @deprecate big (B:: Bidiagonal ) big .(B)
1408+ @deprecate big {T<:Integer,N} (A:: AbstractArray{Complex{T},N} ) big .(A)
1409+ @deprecate big {T<:AbstractFloat,N} (A:: AbstractArray{Complex{T},N} ) big .(A)
1410+ @deprecate big {T<:Integer,N} (x:: AbstractArray{Complex{Rational{T}},N} ) big .(A)
1411+
1412+ # Deprecate manually vectorized div methods in favor of compact broadcast syntax
1413+ @deprecate div (A:: Number , B:: AbstractArray ) div .(A, B)
1414+ @deprecate div (A:: AbstractArray , B:: Number ) div .(A, B)
1415+ @deprecate div (A:: AbstractArray , B:: AbstractArray ) div .(A, B)
1416+
1417+ # Deprecate manually vectorized rem methods in favor of compact broadcast syntax
1418+ @deprecate rem (A:: Number , B:: AbstractArray ) rem .(A, B)
1419+ @deprecate rem (A:: AbstractArray , B:: Number ) rem .(A, B)
1420+
1421+ # Deprecate manually vectorized mod methods in favor of compact broadcast syntax
1422+ @deprecate mod (B:: BitArray , x:: Bool ) mod .(B, x)
1423+ @deprecate mod (x:: Bool , B:: BitArray ) mod .(x, B)
1424+ @deprecate mod (A:: AbstractArray , B:: AbstractArray ) mod .(A, B)
1425+ @deprecate mod {T} (x:: Number , A:: AbstractArray{T} ) mod .(x, A)
1426+ @deprecate mod {T} (A:: AbstractArray{T} , x:: Number ) mod .(A, x)
1427+
1428+ # Deprecate vectorized & in favor of dot syntax
1429+ @deprecate (& )(a:: Bool , B:: BitArray ) a .& B
1430+ @deprecate (& )(A:: BitArray , b:: Bool ) A .& b
1431+ @deprecate (& )(a:: Number , B:: AbstractArray ) a .& B
1432+ @deprecate (& )(A:: AbstractArray , b:: Number ) A .& b
1433+ @deprecate (& )(A:: AbstractArray , B:: AbstractArray ) A .& B
1434+
1435+ # Deprecate vectorized | in favor of compact broadcast syntax
1436+ @deprecate (| )(a:: Bool , B:: BitArray ) a .| B
1437+ @deprecate (| )(A:: BitArray , b:: Bool ) A .| b
1438+ @deprecate (| )(a:: Number , B:: AbstractArray ) a .| B
1439+ @deprecate (| )(A:: AbstractArray , b:: Number ) A .| b
1440+ @deprecate (| )(A:: AbstractArray , B:: AbstractArray ) A .| B
1441+
13531442# End deprecations scheduled for 0.6
0 commit comments