LinearSpaceElement

class odl.set.space.LinearSpaceElement(space)[source]

Bases: object

Abstract class for LinearSpace elements.

Do not use this class directly – to create an element of a vector space, call the space’s LinearSpace.element method instead.

Attributes
T

This element’s transpose, i.e.

space

Space to which this element belongs.

Methods

assign(self, other)

Assign the values of other to self.

copy(self)

Create an identical (deep) copy of self.

dist(self, other)

Return the distance of self to other.

divide(self, other[, out])

Return out = self / other.

inner(self, other)

Return the inner product of self and other.

lincomb(self, a, x1[, b, x2])

Implement self[:] = a * x1 + b * x2.

multiply(self, other[, out])

Return out = self * other.

norm(self)

Return the norm of this element.

set_zero(self)

Set this element to zero.

__init__(self, space)[source]

Initialize a new instance.

All deriving classes must call this method to set the space property.