Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'passing tensor indexes to Module' topicStudent Support Forum > General > "passing tensor indexes to Module"

Next Comment >Help | Reply To Topic
Author Comment/Response
Igor
10/27/11 5:58pm

Let T be some tensor. I pass it to the module with the index(place) of element I want to work with

For example

In[]:=index={1,2,1};

In[]:= Dimension[T]
Out[]:={3,3,3}

test[index_List,T_List]:=Module[
{},
}

How can I use the element indexed in index?
T[[index]] dont work (obvious!).



URL: ,

Subject (listing for 'passing tensor indexes to Module')
Author Date Posted
passing tensor indexes to Module Igor 10/27/11 5:58pm
Re: passing tensor indexes to Module Peter Pein 10/30/11 04:57am
Re: Re: passing tensor indexes to Module Igor 10/30/11 6:18pm
Next Comment >Help | Reply To Topic