Skip to content

base/array: Broadened dispatches for dot operators to AbstractArray.#650

Merged
ViralBShah merged 1 commit intoJuliaLang:masterfrom
pao:topic/subarrayops
Apr 1, 2012
Merged

base/array: Broadened dispatches for dot operators to AbstractArray.#650
ViralBShah merged 1 commit intoJuliaLang:masterfrom
pao:topic/subarrayops

Conversation

@pao
Copy link
Copy Markdown
Member

@pao pao commented Mar 31, 2012

This fixes some uses for amap(), which generates SubArrays. !(SubArray <: Array), so trying to dot-multiply the SubArray by a vector (for instance) fell back on the standard * operator.

This allows an amap()-based solution to @dmbates model matrix update problem (potentially ill-advised, but it bothered me that it didn't work):

hcat(amap(x -> x.*w, X, 2)...)

This fixes some uses for amap(), which generates SubArrays. !(SubArray <: Array), so trying to dot-multiply the SubArray by a vector (for instance) fell back on the standard * operator.
ViralBShah added a commit that referenced this pull request Apr 1, 2012
base/array: Broadened dispatches for dot operators to AbstractArray.
@ViralBShah ViralBShah merged commit 56f323b into JuliaLang:master Apr 1, 2012
jishnub pushed a commit that referenced this pull request Oct 19, 2025
Stdlib: SparseArrays
URL: https://github.com/JuliaSparse/SparseArrays.jl.git
Stdlib branch: main
Julia branch: master
Old commit: 6fe51f2
New commit: 26c80c8
Julia version: 1.13.0-DEV
SparseArrays version: 1.13.0
Bump invoked by: @IanButterworth
Powered by:
[BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl)

Diff:
JuliaSparse/SparseArrays.jl@6fe51f2...26c80c8

```
$ git log --oneline 6fe51f2..26c80c8
26c80c8 `ReadOnly`: do not add single-argument methods to `eachindex`, etc (#653)
15ec056 `ReadOnly`: slightly restrict the dispatch on the `setindex!` method (#652)
306605d cholmod: correct the `IndexStyle` method additions (#650)
74aaeeb `ReadOnly` fixes: prevent adding some methods of `size`, `axes`, `eltype` (#649)
b823108 Bump actions/checkout from 4 to 5 (#647)
```

Co-authored-by: IanButterworth <1694067+IanButterworth@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants