Skip to content

Commit d39b4a1

Browse files
authored
Make sum and wsum doc consistent with code (#727)
1 parent 798a8a4 commit d39b4a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/weights.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ wsumtype(::Type{T}, ::Type{T}) where {T<:BlasReal} = T
537537

538538
"""
539539
wsum!(R::AbstractArray, A::AbstractArray,
540-
w::AbstractWeights{<:Real}, dim::Int;
540+
w::AbstractVector, dim::Int;
541541
init::Bool=true)
542542
Compute the weighted sum of `A` with weights `w` over the dimension `dim` and store
543543
the result in `R`. If `init=false`, the sum is added to `R` rather than starting
@@ -576,7 +576,7 @@ Base.sum!(R::AbstractArray, A::AbstractArray, w::AbstractWeights{<:Real}, dim::I
576576
wsum!(R, A, w, dim; init=init)
577577

578578
"""
579-
sum(v::AbstractArray, w::AbstractVector{<:Real}; [dims])
579+
sum(v::AbstractArray, w::AbstractWeights{<:Real}; [dims])
580580
581581
Compute the weighted sum of an array `v` with weights `w`,
582582
optionally over the dimension `dims`.

0 commit comments

Comments
 (0)