def test_buildrow(self):
        poly = Polynomial2D(order=3)
        row = array(poly.buildRow(2,2))
        error = row-array([1.0,2.0,2.0,4.0,4.0,4.0,8.0,8.0,8.0,8.0])
        sse = (error*error).sum()
        self.assert_(sse < 0.001)

        row = array(poly.buildRow(2,1))
        error = row-array([1.0,1.0,2.0,1.0,2.0,4.0,1.0,2.0,4.0,8.0])
        sse = (error*error).sum()
        self.assert_(sse < 0.001)

        row = array(poly.buildRow(1,2))
        error = array([1.0,2.0,1.0,4.0,2.0,1.0,8.0,4.0,2.0,1.0])-row
        sse = (error*error).sum()
        self.assert_(sse < 0.001)
dataset/ETHPy150Open bolme/pyvision/src/pyvision/vector/Polynomial.py/_PolyTest.test_buildrow/swapped operands of `-`