# Directory `macros/latex/contrib/namedtensor`

# Named tensor notation in LaTeX

This style file provides macros for named tensor notation. Please see the paper Named Tensor Notation for background on this notation.

To use the style file, put

\usepackage{namedtensor}

into the preamble of your LaTeX source file (after `\documentclass{article}`

but before `\begin{document}`

).

We write axis names in sans-serif font. To make this easier, `\name{axis}`

prints the axis name "axis", and `\ndef{\ax}{axis}`

defines a macro `\ax`

that prints the axis name "axis".

Binary operators

- Use
`A \ndot{\ax} B`

for contractions. You can use`\\`

to stack up several names.

- You can use
`\nbin`

to make new binary operators. For example,`A`

nbin{ax}{star} B`gives you a star operator with "axis" written`

under it.

Functions

- Use
`\nsum{\ax} A`

for summation over a named axis.

- You can use
`\nfun`

to make new functions. For example,`\nfun{\ax}{qux} A`

defines a function "qux" with "axis" written under it.

## Credits

- David Chiang, University of Notre Dame, dchiang@nd.edu
- Alexander M. Rush, Cornell University, arush@cornell.edu
- Boaz Barak, Harvard University, b@boazbarak.org

## License

This software is licensed under the MIT License. Please see LICENSE.md for copyright notice.

Download the contents of this package in one zip archive (2.0k).

## namedtensor – Macros for named tensor notation

This style file provides macros for named tensor notation. Please see the paper 'Named Tensor Notation' for background on this notation.

Package | namedtensor |

Version | 0.4 |

Licenses | MIT License |

Copyright | 2022 University of Notre Dame, Cornell University, and Harvard University |

Maintainer | David Chiang |

Contained in | TeX Live as namedtensor MiKTeX as namedtensor |

Topics | Maths |