Skip to content

Commit 110a0a5

Browse files
committed
Merge remote-tracking branch 'origin/master' into teh-jn/lazydotfuse
* origin/master: (23 commits) fix deprecations of \cdot and \times (#26884) Support reshaping custom 0-dimensional arrays (#26870) fix some cases of dot syntax lowering (#26878) Pkg3: deterministically close the LibGit2 repo in tests (#26883) code loading docs: add missing graph edge (#26874) add news for #26858 and #26859 [ci skip] (#26869) Deprecate using && and || within at-dot expressions (#26792) widen `Int8` and `Int16` to `Int` instead of `Int32` (#26859) fix #26038, make `isequal` consistent with `hash` for `Ptr` (#26858) Deprecate variadic size(A, dim1, dim2, dims...) method (#26862) add using Random to example in manual (#26864) warn once instead of depwarn since we want to test it Revert "reserve syntax that could be used for computed field types (#18466) (#26816)" (#26857) Fix compilation on LLVM 6.0 change promotion behaviour of `cumsum` and `cumsum!` to match `sum` [LLVM 6] add patch to diamond if-conversion add a precompile command that can be used to precompile all dependencies (#254) use registry if no version entry exist in project for developed pacakges make Pkg3 work as a drop in for the old CI scripts update registries when adding (#253) ...
2 parents c8bb374 + 692408c commit 110a0a5

38 files changed

+958
-498
lines changed

NEWS.md

+9
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,12 @@ This section lists changes that do not have deprecation warnings.
468468
* `parse(::Type, ::Char)` now uses a default base of 10, like other number parsing
469469
methods, instead of 36 ([#26576]).
470470

471+
* `isequal` for `Ptr`s now compares element types; `==` still compares only addresses
472+
([#26858]).
473+
474+
* `widen` on 8- and 16-bit integer types now widens to the platform word size (`Int`)
475+
instead of to a 32-bit type ([#26859]).
476+
471477
Library improvements
472478
--------------------
473479

@@ -777,6 +783,9 @@ Deprecated or removed
777783
`AbstractUnitRange`s are accepted as arguments. Instead, convert the arguments before
778784
calling `ones` or `zeros` ([#26733]).
779785

786+
* The variadic `size(A, dim1, dim2, dims...)` method to return a tuple of multiple
787+
dimension lengths of `A` has been deprecated ([#26862]).
788+
780789
* The `Operators` module is deprecated. Instead, import required operators explicitly
781790
from `Base`, e.g. `import Base: +, -, *, /` ([#22251]).
782791

base/abstractarray.jl

+3-6
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ end
2424
end
2525

2626
"""
27-
size(A::AbstractArray, [dim...])
27+
size(A::AbstractArray, [dim])
2828
29-
Return a tuple containing the dimensions of `A`. Optionally you can specify the
30-
dimension(s) you want the length of, and get the length of that dimension, or a tuple of the
31-
lengths of dimensions you asked for.
29+
Return a tuple containing the dimensions of `A`. Optionally you can specify a
30+
dimension to just get the length of that dimension.
3231
3332
Note that `size` may not be defined for arrays with non-standard indices, in which case [`axes`](@ref)
3433
may be useful. See the manual chapter on [arrays with custom indices](@ref man-custom-indices).
@@ -45,8 +44,6 @@ julia> size(A, 3, 2)
4544
```
4645
"""
4746
size(t::AbstractArray{T,N}, d) where {T,N} = d <= N ? size(t)[d] : 1
48-
size(x, d1::Integer, d2::Integer, dx::Vararg{Integer, N}) where {N} =
49-
(size(x, d1), size(x, d2), ntuple(k->size(x, dx[k]), Val(N))...)
5047

5148
"""
5249
axes(A, d)

0 commit comments

Comments
 (0)