ProductSpaceElement

class odl.space.pspace.ProductSpaceElement(space, parts)[source]

Bases: odl.set.space.LinearSpaceElement

Elements of a ProductSpace.

Attributes
T

This element’s transpose, i.e.

dtype

The data type of the space of this element.

imag

Imaginary part of the element.

nbytes

Total number of bytes in memory used by this element.

ndim

Number axes in self, computed recursively.

parts

Parts of this product space element.

real

Real part of the element.

shape

Number of values per axis in self, computed recursively.

size

Total number of involved spaces, computed recursively.

space

Space to which this element belongs.

ufuncs

ProductSpaceUfuncs, access to Numpy style ufuncs.

Methods

asarray(self[, out])

Extract the data of this vector as a numpy array.

assign(self, other)

Assign the values of other to self.

conj(self)

Complex conjugate of the element.

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.

show(self[, title, indices])

Display the parts of this product space element graphically.

__init__(self, space, parts)[source]

Initialize a new instance.