TensorSpace.one

TensorSpace.one(self)[source]

Return a tensor of all ones.

This method should be overridden by subclasses.

Returns
oneTensor

A tensor of all one.