File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ AbstractTrees = "0.4"
3434BlockArrays = " 1.9"
3535DrWatson = " 2.19"
3636ForwardDiff = " 1.3"
37- Gridap = " 0.19.7 "
37+ Gridap = " 0.19.8 "
3838GridapDistributed = " 0.4"
3939GridapGmsh = " 0.7"
4040GridapPETSc = " 0.5"
Original file line number Diff line number Diff line change 11
2- """
3- sqrt(A::TensorValue{3})::TensorValue{3}
4-
5- Compute the square root of a 3x3 matrix by means of eigen decomposition.
6- """
7- function sqrt (A:: TensorValue{3} )
8- λ, Q = eigen (A)
9- λ = sqrt .(λ)
10- TensorValue {3} (λ[1 ]* Q[1 : 3 ]* Q[1 : 3 ]' + λ[2 ]* Q[4 : 6 ]* Q[4 : 6 ]' + λ[3 ]* Q[7 : 9 ]* Q[7 : 9 ]' )
11- end
12-
132
143"""
154 cof(A::TensorValue)::TensorValue
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ using StaticArrays
66using LinearAlgebra
77import Base: *
88import Base: +
9- import Base: sqrt
109
1110export (* )
1211export (× ᵢ⁴)
@@ -32,7 +31,6 @@ export δᵢₗδⱼₖ2D
3231export δᵢⱼδₖₗ3D
3332export δᵢₖδⱼₗ3D
3433export δᵢₗδⱼₖ3D
35- export sqrt
3634export cof
3735export contraction_IP_JPKL
3836export contraction_IP_PJKL
@@ -42,9 +40,9 @@ export Ellipsoid
4240
4341# outer ⊗ \otimes
4442# inner ⊙ \odot
45- # cross × \times
46- # sum +
47- # dot ⋅ *
43+ # cross × \times
44+ # sum + +
45+ # dot ⋅ *
4846
4947include (" FlatIndexing.jl" )
5048
You can’t perform that action at this time.
0 commit comments