Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nick/tenmat constructors #293

Merged
merged 10 commits into from
Apr 3, 2024

Conversation

ntjohnson1
Copy link
Collaborator

@ntjohnson1 ntjohnson1 commented Dec 13, 2023

Resolves: #214 but not the full documentation task since I ran out of steam.

Sptenmat is pretty straightforward based on our other constructors. Tenmat was complicated because we had expanded it to take in ANY array regardless of layout and we would try to reshape it for the end user. I constrained it to taking data that is already matricized correctly. My expectation is most people will generate a tenmat from an existing tensors as an intermediate for some operation rather than directly.

I also fixed the dimension inference here and provided an example #102 (comment).


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

@ntjohnson1 ntjohnson1 marked this pull request as ready for review December 13, 2023 23:52
@ntjohnson1 ntjohnson1 mentioned this pull request Dec 16, 2023
@dmdunla dmdunla merged commit ebd5069 into sandialabs:main Apr 3, 2024
9 checks passed
@ntjohnson1 ntjohnson1 deleted the nick/tenmat_constructors branch October 24, 2024 15:28
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.

Update tenmat to updated constructor interface
2 participants