Skip to content

Commit

Permalink
Fix OneElement constructor docstring (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored Aug 26, 2024
1 parent 9868632 commit 05b76ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oneelement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ OneElement{T}(val, inds::NTuple{N,Int}, sz::NTuple{N,Integer}) where {T,N} = One
OneElement{T}(val, inds::Int, sz::Int) where T = OneElement{T}(val, (inds,), (sz,))

"""
OneElement{T}(val, ind::Int, n::Int)
OneElement{T}(ind::Int, n::Int)
Creates a length `n` vector where the `ind` entry is equal to `one(T)`, and all other entries are zero.
"""
Expand Down

0 comments on commit 05b76ad

Please sign in to comment.