Skip to content

Commit

Permalink
NEWS and doc updates for always-sharing reshape behavior
Browse files Browse the repository at this point in the history
closes #4211

[ci skip]
  • Loading branch information
JeffBezanson committed Apr 20, 2016
1 parent d198ce8 commit 3efeba8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Breaking changes
`pmap(retry(f), c)` or `pmap(@catch(f), c)` can be used instead.
([#15409](https://github.com/JuliaLang/julia/pull/15409#discussion_r57494701)).

* `reshape` is now defined to always share data with the original array.
If a reshaped copy is needed, use `copy(reshape(a))` or `copy!` to a new array of
the desired shape ([#4211]).

Library improvements
--------------------
Expand Down Expand Up @@ -160,6 +163,7 @@ Deprecated or removed

[PkgDev]: https://github.com/JuliaLang/PkgDev.jl
<!--- generated by NEWS-update.jl: -->
[#4211]: https://github.com/JuliaLang/julia/issues/4211
[#8036]: https://github.com/JuliaLang/julia/issues/8036
[#8846]: https://github.com/JuliaLang/julia/issues/8846
[#9503]: https://github.com/JuliaLang/julia/issues/9503
Expand Down Expand Up @@ -190,6 +194,7 @@ Deprecated or removed
[#15192]: https://github.com/JuliaLang/julia/issues/15192
[#15242]: https://github.com/JuliaLang/julia/issues/15242
[#15258]: https://github.com/JuliaLang/julia/issues/15258
[#15409]: https://github.com/JuliaLang/julia/issues/15409
[#15550]: https://github.com/JuliaLang/julia/issues/15550
[#15609]: https://github.com/JuliaLang/julia/issues/15609
[#15763]: https://github.com/JuliaLang/julia/issues/15763
4 changes: 1 addition & 3 deletions base/docs/helpdb/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1565,9 +1565,7 @@ ind2chr
"""
reshape(A, dims)
Create an array with the same data as the given array, but with different dimensions. An
implementation for a particular type of array may choose whether the data is copied or
shared.
Create an array with the same data as the given array, but with different dimensions.

This comment has been minimized.

Copy link
@tkelman

tkelman Apr 20, 2016

Contributor

makes most sense to run genstdlib at the same time

"""
reshape

Expand Down

0 comments on commit 3efeba8

Please sign in to comment.