Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Given a list, getting a part from a tensor' topicStudent Support Forum > General > Archives > "Given a list, getting a part from a tensor"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Given a list, getting a part from a tensor')
Author Date Posted
Given a list, getting a part from a tensor Anton 07/31/08 05:06am
Re: Given a list, getting a part from a tensor Anton 08/04/08 01:41am
Next Comment >Help | Reply To Topic