Skip to content

Commit dd13b91

Browse files
Add necessary dispatch to wrap bare Int
1 parent bc77e86 commit dd13b91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vnorm.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
# p-norms
99
_norm0(A, dims::NTuple{M, Int}) where {M} = fill!(similar(A, _reducedsize(A, dims)), _denom(A, dims))
10+
_norm0(A, dims::Int) = _norm0(A, (dims,))
1011
_norm0(A, ::Colon) = float(length(A))
1112

1213
_vnorm(A, p::Rational{T}, dims) where {T} = _vnorm(A, float(p), dims)

0 commit comments

Comments
 (0)