def __add__(self, other): return Vector(API.add(self._vector, other._vector))
def __add__(self, other): if isinstance(other, Number): return Matrix(API.scalarAdd(self._matrix, other)) else: return Matrix(API.add(self._matrix, other._matrix))