adtzlr / matadi

Material Definition with Automatic Differentiation
GNU General Public License v3.0
21 stars 2 forks source link

Fix matadi.math.dot #69

Closed adtzlr closed 2 years ago

adtzlr commented 2 years ago

Matadi's dot-product is taken over from casadi where the first argument is transposed. However in matadi the dot-product should be

A = dot(B, C) should be A(i,j) = B(i,k) C(k,j)

and not

A = dot(B, C) should be A(i,j) = B(k, i) C(k,j).