Embed extra info?
- To: mathgroup at smc.vnet.net
- Subject: [mg113606] Embed extra info?
- From: Sam Takoy <sam.takoy at yahoo.com>
- Date: Thu, 4 Nov 2010 04:00:40 -0500 (EST)
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