Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14407 > unrolled thread
| Started by | Yi Wang <tririverwangyi@gmail.com> |
|---|---|
| First post | 2013-05-04 07:17 +0000 |
| Last post | 2013-05-04 07:17 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
IdentityMatrix for abstract tensor Yi Wang <tririverwangyi@gmail.com> - 2013-05-04 07:17 +0000
| From | Yi Wang <tririverwangyi@gmail.com> |
|---|---|
| Date | 2013-05-04 07:17 +0000 |
| Subject | IdentityMatrix for abstract tensor |
| Message-ID | <km2cln$4l3$1@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!
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web