IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo module

math

Implements tensor math operations.

Functions​

  • ​max: Computes element-wise maxima into a new tensor with the input layout.
  • ​mean: Computes the mean value of the elements in a buffer.
  • ​outer_product_acc: Updates result tensor with the outer product of two vectors.
  • ​sum: Computes lane-wise sums along one outer dimension.
  • ​variance: Computes the variance value of the elements in a buffer.

Was this page helpful?