TensorSpace.one

TensorSpace.one()[source]

Return a tensor of all ones.

This method should be overridden by subclasses.

Returns:
oneTensor

A tensor of all one.