Tensor Manipulation Routines#

Transposition#

maxframe.tensor.core.Tensor.T

Same as self.transpose(), except that self is returned if self.ndim < 2.

maxframe.tensor.transpose

Returns an array with axes transposed.

Shape manipulation#

maxframe.tensor.reshape

Gives a new shape to a tensor without changing its data.

Edit dimensionalities#

maxframe.tensor.atleast_1d

Convert inputs to tensors with at least one dimension.

maxframe.tensor.atleast_2d

View inputs as tensors with at least two dimensions.

maxframe.tensor.atleast_3d

View inputs as tensors with at least three dimensions.

Joining tensors#

maxframe.tensor.concatenate

Join a sequence of arrays along an existing axis.

maxframe.tensor.vstack

Stack tensors in sequence vertically (row wise).