
Student Support Forum: 'Given a list, getting a part from a tensor' topicStudent Support Forum > General > "Given a list, getting a part from a tensor"
| Author |
Comment/Response |
Anton
|
07/31/08 05:06am
So I have a list as an input and I want to get a value that is at that position in a very deep tensor.
For instance, say my tensor is of depth 4.
Given a list {1,3,2,3} I want to find the value of an element in the 3rd part of the 2nd part of the 3rd part of the 1st part of the tensor.
Normally, to get this part, you enter:
tensorName[[1,3,2,3]] and that would be fine except my input is composed of different lists and must be iterated many times. I've tried:
tensorName[[Row[{1,3,2,3},","]]] because the row operation normally removes list brackets, but it doesnt work. Any thoughts?
URL: , |
|
| | | |
 | |
|