Mercurial > repos > public > sbplib_julia
comparison test/testLazyTensors.jl @ 523:390901860b0a refactor/inflated_tensormapping_tests
Add some tests to test a wider range of possibilities for inflation
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 25 Nov 2020 15:04:02 +0100 |
parents | 3968210797a9 |
children | 41c1760a7770 78090ec3074d |
comparison
equal
deleted
inserted
replaced
522:3968210797a9 | 523:390901860b0a |
---|---|
368 ( | 368 ( |
369 InflatedTensorMapping(I(3,2), A, I(4)), | 369 InflatedTensorMapping(I(3,2), A, I(4)), |
370 (v-> @tullio res[a,b,c,d] := Ã[c,i]*v[a,b,i,d]), | 370 (v-> @tullio res[a,b,c,d] := Ã[c,i]*v[a,b,i,d]), |
371 ), | 371 ), |
372 ( | 372 ( |
373 InflatedTensorMapping(I(3,2), B, I(4)), | |
374 (v-> @tullio res[a,b,c,d,e] := B̃[c,d,i]*v[a,b,i,e]), | |
375 ), | |
376 ( | |
377 InflatedTensorMapping(I(3,2), C, I(4)), | |
378 (v-> @tullio res[a,b,c,d] := C̃[c,i,j]*v[a,b,i,j,d]), | |
379 ), | |
380 ( | |
373 InflatedTensorMapping(I(3,2), A), | 381 InflatedTensorMapping(I(3,2), A), |
374 (v-> @tullio res[a,b,c] := Ã[c,i]*v[a,b,i]), | 382 (v-> @tullio res[a,b,c] := Ã[c,i]*v[a,b,i]), |
375 ), | 383 ), |
376 ( | 384 ( |
385 InflatedTensorMapping(I(3,2), B), | |
386 (v-> @tullio res[a,b,c,d] := B̃[c,d,i]*v[a,b,i]), | |
387 ), | |
388 ( | |
389 InflatedTensorMapping(I(3,2), C), | |
390 (v-> @tullio res[a,b,c] := C̃[c,i,j]*v[a,b,i,j]), | |
391 ), | |
392 ( | |
377 InflatedTensorMapping(A,I(4)), | 393 InflatedTensorMapping(A,I(4)), |
378 (v-> @tullio res[c,d] := Ã[c,i]*v[i,d]), | 394 (v-> @tullio res[a,b] := Ã[a,i]*v[i,b]), |
395 ), | |
396 ( | |
397 InflatedTensorMapping(B,I(4)), | |
398 (v-> @tullio res[a,b,c] := B̃[a,b,i]*v[i,c]), | |
399 ), | |
400 ( | |
401 InflatedTensorMapping(C,I(4)), | |
402 (v-> @tullio res[a,b] := C̃[a,i,j]*v[i,j,b]), | |
379 ), | 403 ), |
380 ] | 404 ] |
381 | 405 |
382 for i ∈ 1:length(tests) | 406 for i ∈ 1:length(tests) |
383 tm = tests[i][1] | 407 tm = tests[i][1] |