@@ -169,25 +169,18 @@ end
169
169
170
170
# # Base interface
171
171
172
-
173
-
174
172
Base. _accumulate! (op, output:: WrappedMtlArray , input:: WrappedMtlVector , dims:: Nothing , init:: Nothing ) =
175
173
@inline AK. accumulate! (op, output, input; dims, init= AK. neutral_element (op, eltype (output)), alg= AK. ScanPrefixes ())
176
- # scan!(op, output, input; dims=1)
177
174
178
175
Base. _accumulate! (op, output:: WrappedMtlArray , input:: WrappedMtlArray , dims:: Integer , init:: Nothing ) =
179
176
@inline AK. accumulate! (op, output, input; dims, init= AK. neutral_element (op, eltype (output)), alg= AK. ScanPrefixes ())
180
- # scan!(op, output, input; dims=dims)
181
177
Base. _accumulate! (op, output:: WrappedMtlArray , input:: MtlVector , dims:: Nothing , init:: Some ) =
182
178
@inline AK. accumulate! (op, output, input; dims, init= something (init), alg= AK. ScanPrefixes ())
183
- # scan!(op, output, input; dims=1, init=init)
184
179
185
180
Base. _accumulate! (op, output:: WrappedMtlArray , input:: WrappedMtlArray , dims:: Integer , init:: Some ) =
186
181
@inline AK. accumulate! (op, output, input; dims, init= something (init), alg= AK. ScanPrefixes ())
187
- # scan!(op, output, input; dims=dims, init=init)
188
182
189
183
Base. accumulate_pairwise! (op, result:: WrappedMtlVector , v:: WrappedMtlVector ) = @inline AK. accumulate! (op, result, v; init= AK. neutral_element (op, eltype (result)), alg= AK. ScanPrefixes ())
190
- # Base.accumulate_pairwise!(op, result::WrappedMtlVector, v::WrappedMtlVector) = accumulate!(op, result, v)
191
184
192
185
# default behavior unless dims are specified by the user
193
186
function Base. accumulate (op, A:: WrappedMtlArray ;
0 commit comments