Dense Tensor (:class:`pyttb.tensor`) ------------------------------------ .. note:: Classes and functions defined in ``tensor.py`` have been promoted to the ``pyttb`` namespace. For *all* examples in this document, the following module imports are assumed:: >>> import pyttb as ttb >>> import numpy as np .. automodule:: pyttb.tensor :members: :special-members: :exclude-members: __dict__, __weakref__, __slots__ :show-inheritance: .. autofunction:: pyttb.tenones .. autofunction:: pyttb.tenzeros .. autofunction:: pyttb.tenrand .. autofunction:: pyttb.tendiag .. autofunction:: pyttb.teneye