TensorSpace.element

TensorSpace.element(self, inp=None, \*\*kwargs)

Create a LinearSpaceElement from inp or from scratch.

If called without inp argument, an arbitrary element of the space is generated without guarantee of its state.

If inp in self, this has return inp or a view of inp, otherwise, a copy may or may not occur.

Parameters
inpoptional

Input data from which to create the element.

kwargs :

Optional further arguments.

Returns
elementLinearSpaceElement

A new element of this space.