https://github.com/JuliaLang/julia
Revision 2e922d104ff77f61fbb3a4f32d4c9a4d48598f62 authored by Stephan Hilb on 07 July 2020, 18:29:19 UTC, committed by KristofferC on 08 July 2020, 12:49:38 UTC
* fix broadcast for scalar cartesian indexing

When broadcasting left-hand side indexing is turned into a dotview.
For scalar indexing this should be equivalent to a `getindex`, but up
until this patch the `CartesianIndex` would not be treated as such.

This fixes e.g. broadcasting like `a[CartesianIndex(1)] .= 1` for a nested
array `a`.

* Also extend to `AbstractCartesianIndex`es

Co-authored-by: Matt Bauman <mbauman@gmail.com>
(cherry picked from commit ff174120aad91e1a838b5cf99bd2b97c14aab2f5)
1 parent 6b38b28
History
Tip revision: 2e922d104ff77f61fbb3a4f32d4c9a4d48598f62 authored by Stephan Hilb on 07 July 2020, 18:29:19 UTC
fix broadcasted assignment for scalar cartesian indexing (#35926)
Tip revision: 2e922d1
File Mode Size
.devcontainer
base
contrib
deps
doc
etc
src
stdlib
test
ui
.appveyor.yml -rw-r--r-- 2.1 KB
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 273 bytes
.mailmap -rw-r--r-- 11.0 KB
.travis.yml -rw-r--r-- 6.1 KB
CITATION.bib -rw-r--r-- 2.6 KB
CONTRIBUTING.md -rw-r--r-- 19.9 KB
HISTORY.md -rw-r--r-- 275.6 KB
LICENSE.md -rw-r--r-- 5.0 KB
Make.inc -rw-r--r-- 44.1 KB
Makefile -rw-r--r-- 26.9 KB
NEWS.md -rw-r--r-- 16.4 KB
README.md -rw-r--r-- 6.3 KB
VERSION -rw-r--r-- 10 bytes
sysimage.mk -rw-r--r-- 3.9 KB

README.md

back to top