I have a tensor of a variable size as an input to a function in which I need to access specific elements. Because the order of this tensor is variable, notation:


is not an option. In MATLAB I would have a solution to the effect of:

access_array = [a,b,c,d,...];

however this type of solution does not seem to work in Mathematica, and the documentation does not propose an equivalent. Here is what I tried:


Thank you for your help, Slava


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.