Tensor Manipulation Routines
============================

Basic manipulations
-------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.copyto


Shape manipulation
------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.reshape
   mars.tensor.ravel


Transposition
-------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.moveaxis
   mars.tensor.rollaxis
   mars.tensor.swapaxes
   mars.tensor.core.Tensor.T
   mars.tensor.transpose


Edit dimensionalities
---------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.atleast_1d
   mars.tensor.atleast_2d
   mars.tensor.atleast_3d
   mars.tensor.broadcast_to
   mars.tensor.broadcast_arrays
   mars.tensor.expand_dims
   mars.tensor.squeeze


Changing kind of tensor
----------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.asarray


Joining tensors
---------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.concatenate
   mars.tensor.stack
   mars.tensor.column_stack
   mars.tensor.dstack
   mars.tensor.hstack
   mars.tensor.vstack


Splitting tensors
-----------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.split
   mars.tensor.array_split
   mars.tensor.dsplit
   mars.tensor.hsplit
   mars.tensor.vsplit


Tiling tensors
--------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.tile
   mars.tensor.repeat


Adding and removing elements
----------------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

    mars.tensor.delete
    mars.tensor.insert
    mars.tensor.append
    mars.tensor.unique


Rearranging elements
--------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.flip
   mars.tensor.fliplr
   mars.tensor.flipud
   mars.tensor.reshape
   mars.tensor.roll