I'm new to julia and I'm working on to rewrite julia code to python code.
And I saw the some codes using .== expression. I couldn't understand what this means. So I searched it on web but couldn't find an answer.
Can someone tell me what is .== in julia and its equivalent in python?
fyi, it was written like below.
x = sum(y .== 0) # y is array
isequaldoes in Julia, as==uses triple-valued logic (somissingis propagated). Also in Julia normally you would not writesum(y .== 0)but rathercount(iszero, y)as it will be faster. - Bogumił Kamiński