Error in Array

expected Array{Int64,1}, got Array{Int64,2}

This means that you are passing a matrix (an Array{Int64, 2} which is the same as a Matrix{Int64}) to a function which expects a vector (an Array{Int64, 1} which is the same as a Vector{Int64}).

However, without being able to see the full inputs or error message, it’s difficult to say how to fix it. Please take a look at Please read: make it easier to help you

3 Likes