-
-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Labels
breakingThis change will break codeThis change will break codespeculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculative
Description
The function LinearAlgebra.norm should be calculated in a global way. e.g. the 1-norm:
julia> function norm1(x) return LinearAlgebra.norm(x, 1) end
norm1 (generic function with 1 method)
julia> t = ([1 1; 0 0.], [0 0; 0 0.])
([1.0 1.0; 0.0 0.0], [0.0 0.0; 0.0 0.0])
julia> t[1]
2×2 Matrix{Float64}:
1.0 1.0
0.0 0.0
julia> t[2]
2×2 Matrix{Float64}:
0.0 0.0
0.0 0.0
julia> norm1(t) # this is strange because norm-2 feature is involved in a norm-1 function
1.4142135623730951I think in practice people should expect the last result being 2.0, because we are calculating 1-norm.
Metadata
Metadata
Assignees
Labels
breakingThis change will break codeThis change will break codespeculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculative