[Date Index] [Thread Index] [Author Index]
Embed extra info?
Hi, I'm writing code that implements tensor calculus. I'm sure it's been done beautifully in MathTensor and other Mathematica packages, but I would like to do it for myself to learn things along the way... Nontensorially speaking, a tensor is a multidimensional array but each dimension is tagged as either upper or lower and certain operations on the array are performed differently depending on the flavor. Is there a way to embed extra info in a List of Lists so that if one does regular things with the List, such as displaying it, the information does not show up, but other operations can extract the extra info and use it? Many thanks in advance! Sam