3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-27 06:43:40 +01:00
dft_tools/test/triqs/arrays/mat_vec_mul.output
Olivier Parcollet f2c7d449cc First commit : triqs libs version 1.0 alpha1
for earlier commits, see TRIQS0.x repository.
2013-07-17 19:24:07 +02:00

50 lines
440 B
Plaintext

A =
[[1,3,5,7,9]
[2,4,6,8,10]
[3,5,7,9,11]
[4,6,8,10,12]
[5,7,9,11,13]]
A(R,R) =
[[4,6]
[5,7]]
MC(R) = [1,1]
MB = mat_vec_mul(
[[4,6]
[5,7]],[1,1]) = [0,10,12,0,0]
testing infix
A =
[[4,6]
[5,7]]
MC = [1,1,1,1,1]
MB(R) += A(R,R) * MC(R) = [0,20,24,0,0]
explicit blas call
MC = [1,1,1,1,1]
A =
[[4,6]
[5,7]]
MB = [0,10,12,0,0]
A =
[[4,6]
[5,7]]
MB = [0,10,12,0,0]
A =
[[4,5]
[6,7]]
MB = [0,9,13,0,0]