3
$\begingroup$

Bug introduced in version 9.0.0 or 9.0.1 and fixed in 10.1 or 10.2


When nesting TensorContract the result I get is wrong.

Input:

TensorContract[TensorContract[A, {{1, 3}, {2, 4}}], {{1, 2}}]

Expected output:

TensorContract[A, {{1, 3}, {2, 4}, {5, 6}}]

Actual output (Mac version 10.0.0):

During evaluation of In[1]:= TensorContract::lvreps: Contractions {{1,3},{2,4},{3,6}} contain repeated levels. >>
Out[1]= TensorContract[A, {{1, 3}, {2, 4}, {3, 6}}]

Declaring A as an array does not help. Am I missing something? Is there a workaround?

Related: Error messages from TensorContract and TensorReduce

$\endgroup$
2
  • $\begingroup$ I can reproduce this on version 10.0.2 Linux x64. I agree it should be a bug. $\endgroup$
    – Yi Wang
    Dec 14, 2014 at 18:57
  • $\begingroup$ I can also reproduce this on version 9.0.1.0, Linux x86 (64-bit). $\endgroup$
    – ungerade
    Dec 15, 2014 at 10:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.