Skip to content

Commit 5c51ad2

Browse files
authored
Merge pull request #37559 from JuliaLang/teh/reinterpret_reshape
Fix the performance of `reinterpretarray` with simultaneous reshaping
2 parents 24c468d + 7143444 commit 5c51ad2

File tree

5 files changed

+505
-41
lines changed

5 files changed

+505
-41
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ New library features
8383

8484
* The `redirect_*` functions can now be called on `IOContext` objects.
8585
* New constructor `NamedTuple(iterator)` that constructs a named tuple from a key-value pair iterator.
86+
* A new `reinterpret(reshape, T, a::AbstractArray{S})` reinterprets `a` to have eltype `T` while potentially
87+
inserting or consuming the first dimension depending on the ratio of `sizeof(T)` and `sizeof(S)`.
8688

8789
Standard library changes
8890
------------------------

0 commit comments

Comments
 (0)