-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
…ed matrices to sparse.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,8 +203,8 @@ arguments to `f` unless it is also listed in the `As`, | |
as in `broadcast!(f, A, A, B)` to perform `A[:] = broadcast(f, A, B)`. | ||
""" | ||
@inline broadcast!{N}(f, C::AbstractArray, A, Bs::Vararg{Any,N}) = | ||
broadcast_c!(f, containertype(C, A, Bs...), C, A, Bs...) | ||
@inline function broadcast_c!{N}(f, ::Type, C::AbstractArray, A, Bs::Vararg{Any,N}) | ||
broadcast_c!(f, containertype(C), containertype(A, Bs...), C, A, Bs...) | ||
@inline function broadcast_c!{N}(f, ::Type, ::Type, C, A, Bs::Vararg{Any,N}) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Sacha0
Author
Member
|
||
shape = indices(C) | ||
@boundscheck check_broadcast_indices(shape, A, Bs...) | ||
keeps, Idefaults = map_newindexer(shape, A, Bs) | ||
|
@Sacha0 Sorry, I still don't get it but I should probably have asked here instead of in the older commit. I can see the you'd been joint type information for
C
,A
, andBs
to dispatch to the right routine but it seems to me that you could just dispatch onC
and a single of the::Type
arguments instead ignoringtypeof(C)
and dispatching on two::Type
arguments. Does it make sense or should I read you last comment again?