LinearSpaceElement¶
- class odl.set.space.LinearSpaceElement(space)[source]¶
- Bases: - object- Abstract class for - LinearSpaceelements.- Do not use this class directly -- to create an element of a vector space, call the space's - LinearSpace.elementmethod instead.- Methods - assign(other)- Assign the values of - otherto- self.- copy()- Create an identical (deep) copy of self. - dist(other)- Return the distance of - selfto- other.- divide(other[, out])- Return - out = self / other.- inner(other)- Return the inner product of - selfand- other.- lincomb(a, x1[, b, x2])- Implement - self[:] = a * x1 + b * x2.- multiply(other[, out])- Return - out = self * other.- norm()- Return the norm of this element. - set_zero()- Set this element to zero.