JuliaLang/julia — pull request #650 by pao (2012-03-31 03:52:12+00:00)
Title: base/array: Broadened dispatches for dot operators to AbstractArray.

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)...)
```