UniversalSpace¶
- class odl.set.space.UniversalSpace[source]¶
Bases:
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
contains_all
(other)Test if all elements in
other
are contained in this set.contains_set
(other)Test if
other
is a subset of this set.dist
(x1, x2)Return the distance between
x1
andx2
.divide
(x1, x2[, out])Return the pointwise quotient of
x1
andx2
element
([inp])Dummy element creation method.
inner
(x1, x2)Return the inner product of
x1
andx2
.lincomb
(a, x1[, b, x2, out])Implement
out[:] = a * x1 + b * x2
.multiply
(x1, x2[, out])Return the pointwise product of
x1
andx2
.norm
(x)Return the norm of
x
.one
()Return the one (multiplicative unit) element of this space.
zero
()Return the zero (additive unit) element of this space.