We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf81795 commit f35540bCopy full SHA for f35540b
1 file changed
src/TensorAlgebra/Functions.jl
@@ -17,7 +17,7 @@ end
17
Calculate the cofactor of a matrix.
18
"""
19
function cof(A::TensorValue)
20
- return det(A)*inv(A')
+ 0.5A×A
21
end
22
23
0 commit comments