[Feature Request] Please implement a __setitem__
method for Tensor
type
#865
Labels
enhancement
New feature or request
mojo
Issues that are related to mojo
mojo-repo
Tag all issues with this label
mojo-stdlib
Tag for issues related to standard library
tensor
Review Mojo's priorities
What is your request?
Please implement a
__setitem__
method forTensor
that allows implicit indexing (just like how it has been implemented for__getitem__
, seet[0, 0]
in the example below) instead of having to useIndex(m, n)
.Output:
What is your motivation for this change?
Idiomatic usage of a Tensor/matrix.
Any other details?
No response
The text was updated successfully, but these errors were encountered: