Solved by Peter1998 in post #6 
              
              
                For 1d coordinates the absolute value is the common L2 distance. If you see your second dimension as 256 seperate 1d coordinates, then your code computes you the 256 corresponding distances. But: It is not the L2 norm of a 256d vector.