13.07.2015 Views

UFL Specification and User Manual 0.3 - FEniCS Project

UFL Specification and User Manual 0.3 - FEniCS Project

UFL Specification and User Manual 0.3 - FEniCS Project

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>UFL</strong> <strong>Specification</strong> <strong>and</strong> <strong>User</strong> <strong>Manual</strong> <strong>0.3</strong>Martin S. Alnæs, Anders Logg• ln(f)• cos(f)• sin(f)These functions do not accept non-scalar oper<strong>and</strong>s or oper<strong>and</strong>s with freeindices or BasisFunction dependencies.2.8 Tensor Algebra Operators2.8.1 transposeThe transpose of a matrix A can be written asAT = transpose(A)AT = A.TAT = as_matrix(A[i,j], (j,i))The definition of the transpose isAT[i,j] ↔ (A ⊤ ) ij = A ji . (2.15)For transposing higher order tensor expressions, index notation can be used:AT = as_tensor(A[i,j,k,l], (l,k,j,i))2.8.2 trThe trace of a matrix A is the sum of the diagonal entries. This can bewritten as36

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!