Questions about indexing and tensor contractions

Thomas Yang via ublas <[email protected]> Fri, 29 Mar 2019 16:56:53 -0500
Newsgroups gmane.comp.lib.boost.ublas
Message-ID <CAE908cHJS1OtRKGWhxecegVn12wH7njtrEFGCnq7S1y_EJGkdw@mail.gmail.com>
--===============7480612113841203070==
Content-Type: multipart/alternative; boundary="000000000000c61b29058542c1cf"

--000000000000c61b29058542c1cf
Content-Type: text/plain; charset="UTF-8"

Hello,

Recently, I came across the index utility "number_equal_indices<>" method,
which is used in the implementation of tensor contraction. If my
understanding is correct, this appears to facilitate the implementation of
Einstein summations, where common indices between two tensors/matrices are
summed.

My question now is - what happens when there are more than one equal index
(i.e. both tensors use indices i and j)?

Thanks,

Thomas Yang

--000000000000c61b29058542c1cf
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,=C2=A0<div><br></div><div>Recently, I came across th=
e index utility &quot;number_equal_indices&lt;&gt;&quot; method, which is u=
sed in the implementation of tensor contraction. If my understanding is cor=
rect, this appears to facilitate the implementation of Einstein summations,=
 where common indices between two tensors/matrices are summed.=C2=A0</div><=
div><br></div><div>My question now is - what happens when there are more th=
an one equal index (i.e. both tensors use indices i and j)?</div><div><br><=
/div><div>Thanks,</div><div><br></div><div>Thomas Yang=C2=A0</div></div>

--000000000000c61b29058542c1cf--

--===============7480612113841203070==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline