Skip to content

Commit

Permalink
move python 2 weirdness.
Browse files Browse the repository at this point in the history
  • Loading branch information
rainwoodman committed Aug 1, 2017
1 parent 288f24e commit 9a0543e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions abopt/vectorspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def addmul(self, a, b, c, p=1):
a = _c2r(a)
b = _c2r(b)
c = _c2r(c)
return _r2c(RealVectorSpace.addmul(self, a, b, c, p))
return _r2c(RealVectorSpace.addmul(RealVectorSpace(), a, b, c, p))

def dot(self, a, b):
return RealVectorSpace.dot(self, _c2r(a), _c2r(b))
return RealVectorSpace.dot(RealVectorSpace(), _c2r(a), _c2r(b))

real_vector_space = RealVectorSpace()
complex_vector_space = ComplexVectorSpace()

0 comments on commit 9a0543e

Please sign in to comment.