Skip to main content

Einstein Summation Numpy API

This is evaluates the einstein summation on the operands. It is analogous to numpy.einsum, and uses the same notation.

Examples for all the possible use cases are provided below.

.. autofunction:: csdl.std.einsum.einsum

Inner Products#

.. toctree:: :maxdepth: 1 :titlesonly:

ex_einsum_old_inner_vector_vector.rst ex_einsum_old_inner_vector_vector_sparse.rst ex_einsum_old_inner_tensor_vector.rst ex_einsum_old_inner_tensor_vector_sparse.rst

Outer Products#

.. toctree:: :maxdepth: 1 :titlesonly:

ex_einsum_old_outer_vector_vector.rst ex_einsum_old_outer_vector_vector_sparse.rst ex_einsum_old_outer_tensor_vector.rst ex_einsum_old_outer_tensor_vector_sparse.rst

Reorder Operations#

.. toctree:: :maxdepth: 1 :titlesonly:

ex_einsum_old_reorder_matrix.rst ex_einsum_old_reorder_matrix_sparse.rst ex_einsum_old_reorder_tensor.rst ex_einsum_old_reorder_tensor_sparse.rst

Summation Operations#

.. toctree:: :maxdepth: 1 :titlesonly:

ex_einsum_old_vector_summation.rst ex_einsum_old_vector_summation_sparse.rst ex_einsum_old_tensor_summation.rst ex_einsum_old_tensor_summation_sparse.rst

Special Operations#

.. toctree:: :maxdepth: 1 :titlesonly:

ex_einsum_old_multiple_vector_summation.rst ex_einsum_old_multiple_vector_summation_sparse.rst