This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Matrix dot product

0 votes

How is defined in Fenics the matrix dot product?

I mean A:B = sum_i sum_j A_ij *B_ij

asked Apr 18, 2017 by caterinabig FEniCS User (1,460 points)

1 Answer

0 votes
 
Best answer

The UFL notation for the double dot product of matrices A and B is

    inner(A,B)
answered Apr 18, 2017 by jmmal FEniCS User (5,890 points)
selected Apr 18, 2017 by caterinabig
...