returns true if the vectors are equal otherwise false.
(self, other)
| 180 | return self |
| 181 | |
| 182 | def __eq__(self, other): |
| 183 | """ |
| 184 | returns true if the vectors are equal otherwise false. |
| 185 | """ |
| 186 | ans = True |
| 187 | SIZE = self.size() |
| 188 | if SIZE == other.size(): |
| 189 | for i in range(SIZE): |
| 190 | if self.__components[i] != other.component(i): |
| 191 | ans = False |
| 192 | break |
| 193 | else: |
| 194 | ans = False |
| 195 | return ans |
| 196 | |
| 197 | |
| 198 | def zeroVector(dimension): |