Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14407
| From | Yi Wang <tririverwangyi@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | IdentityMatrix for abstract tensor |
| Date | 2013-05-04 07:17 +0000 |
| Message-ID | <km2cln$4l3$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
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!
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
IdentityMatrix for abstract tensor Yi Wang <tririverwangyi@gmail.com> - 2013-05-04 07:17 +0000
csiph-web