waynebhayes / SANA

Simulating Annealing Network Aligner
25 stars 39 forks source link

Fixed error when trying to use matrix object in hasSelfLoop #69

Closed rasulsafa closed 5 years ago

rasulsafa commented 5 years ago

Since the overloaded [] operator in the Matrix class isn't a const function, the compiler was spitting errors when we're trying to use it in the const function hasSelfLoop. Instead of using [], I switched it to the get function, which does the same thing, but is a const function. Alternatively, a const version of the [] operator could be created, but get function was already implemented so I chose to use that.

waynebhayes commented 5 years ago

Thanks.