We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Int
1 parent bc77e86 commit dd13b91Copy full SHA for dd13b91
src/vnorm.jl
@@ -7,6 +7,7 @@
7
8
# p-norms
9
_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,))
11
_norm0(A, ::Colon) = float(length(A))
12
13
_vnorm(A, p::Rational{T}, dims) where {T} = _vnorm(A, float(p), dims)
0 commit comments