Skip to content

Conversation

@tgkolda
Copy link
Collaborator

@tgkolda tgkolda commented Apr 4, 2025

  • Added an example showing how to create a tensor with normal random entries, for which there is no current shortcut like tenones.
  • Used that example to show how it's arguably best to pass in a vector rather than trying to worry about forcing Fortran ordering.
  • Also updated the example of create an all-ones tensor. The previous documentation relied on some function called fortran_order_one, and I'm not sure what that is.
  • Instead, I changed it to the numpy.ones function and to specify the fortran order via its interface.

I think these examples will be helpful to users.


📚 Documentation preview 📚: https://pyttb--425.org.readthedocs.build/en/425/

tgkolda and others added 4 commits April 4, 2025 16:50
Added an example showing how to create a tensor with normal random entries, for which there is no current shortcut like `tenones`.
Used that example to show how it's arguably best to pass in a vector rather than trying to worry about forcing Fortran ordering.
Also updated the example of create an all ones tensor.
The previous documentation relied on some function called `fortran_order_one`, and I'm not sure what that is.
Instead, I changed it to the `numpy.ones` function and to specify the fortran order via its interface.
I think these examples will be more helpful to users.
@dmdunla dmdunla merged commit bdc7e61 into sandialabs:main Apr 7, 2025
9 checks passed
@tgkolda tgkolda deleted the doc-tensor-from-function branch May 28, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants