MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

IdentityMatrix for abstract tensor

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130703] IdentityMatrix for abstract tensor
  • From: Yi Wang <tririverwangyi at gmail.com>
  • Date: Sat, 4 May 2013 03:17:01 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

Dear all,

I was trying to make use of the abstract tensors that are introduced in Mathematica 9. I would need to be able to construct an identity matrix such that (for a general dimension):

TensorContract[A=E2=8A=97IdentityMatrix, {{2,3}}]//TensorReduce (* or any other simplification *)

gives A,

TensorContract[A=E2=8A=97IdentityMatrix=E2=8A=97B=E2=8A=97..., {{2,3}}]//TensorReduce

gives A=E2=8A=97B=E2=8A=97..., and

TensorContract[IdentityMatrix, {{1,2}}]//TensorReduce

gives TensorDimensions[e].

Is it possible to implement something like this? Thanks!



  • Prev by Date: Re: Plot with axes exchanged
  • Next by Date: A minimization problem with variable length
  • Previous by thread: Re: Easy to get the audio out of sync with the graphics (Repost)
  • Next by thread: A minimization problem with variable length