You have a local variable called norm which is a Matrix{Float64} (a.k.a. Array{Float64, 2}), so you are not calling the function norm but instead trying to use your Matrix named norm as if it were a function.
6 Likes