A = Matrix.New({{1,2},{3,4}}) B = Matrix.New({{1,2},{3,4}}) C = Matrix.New({{5,6},{7,8}}) D = {{1,2},{3,4}} setmetatable(D, MatrixMeta) E = {{1,2},{3,4}} setmetatable(E, MatrixMeta) F = {{5,6},{7,8}} setmetatable(F, MatrixMeta) print("Matrix as Userdata comparison") print("A==B ",A==B) print("A==C", A==C) print("Matrix as table with metadata comparison") print("D==E ",D==E) print("D==F", D==F) print("but WARNING WARNING, userdata are never equal to tables with metadata") print("A==D", A==D)