UniversalSpace¶
-
class
odl.set.space.
UniversalSpace
[source]¶ Bases:
odl.set.space.LinearSpace
A dummy linear space class.
Mostly raising
LinearSpaceNotImplementedError
.- Attributes
element_type
Type of elements of this space (
LinearSpaceElement
).examples
field
Scalar field of numbers for this vector space.
Methods
_dist
(self, x1, x2)Dummy distance method.
_divide
(self, x1, x2, out)Dummy division method.
_inner
(self, x1, x2)Dummy inner product method.
_lincomb
(self, a, x1, b, x2, out)Dummy linear combination.
_multiply
(self, x1, x2, out)Dummy multiplication method.
_norm
(self, x)Dummy norm method.
contains_all
(self, other)Test if all elements in
other
are contained in this set.contains_set
(self, other)Test if
other
is a subset of this set.dist
(self, x1, x2)Return the distance between
x1
andx2
.divide
(self, x1, x2[, out])Return the pointwise quotient of
x1
andx2
element
(self[, inp])Dummy element creation method.
inner
(self, x1, x2)Return the inner product of
x1
andx2
.lincomb
(self, a, x1[, b, x2, out])Implement
out[:] = a * x1 + b * x2
.multiply
(self, x1, x2[, out])Return the pointwise product of
x1
andx2
.norm
(self, x)Return the norm of
x
.one
(self)Return the one (multiplicative unit) element of this space.
zero
(self)Return the zero (additive unit) element of this space.