Vecnorm Error

I have this code that must be from an old version

function column_norms(X, i)
M = size(X)[2]
X_diff = X .- X[:, i]
norm_vector = [vecnorm(X_diff[:, k]) for k=1:M]
norm_vector[i] = 10^10

UndefVarError: vecnorm not defined

[1] (::var"#9#10"{Array{Float64,2}})(::Int64) at .\none:0
[2] collect(::Base.Generator{UnitRange{Int64},var"#9#10"{Array{Float64,2}}}) at .\generator.jl:47
[3] column_norms(::Array{Float64,2}, ::Int64) at .\In[21]:65
[4] compute_norms(::Array{Float64,2}) at .\In[21]:56
[5] lyaponuv_k(::Array{Float64,1}, ::Int64, ::Int64, ::Int64) at .\In[21]:3
[6] lyaponuv(::Array{Float64,1}, ::Int64, ::Int64, ::Int64) at .\In[21]:81
[7] top-level scope at .\In[24]:31

Check the 0.7 manual:

  • vecdot and vecnorm are deprecated in favor of dot and norm , respectively (#27401).

In general if you’ve got pre-Julia 1.0 code it might be useful to run it in Julia 0.7, which is essentially 1.0 with deprecation warnings so it’ll let you know what syntax has changed.