Skip to content

Commit 122b58e

Browse files
committed
added benchmark
1 parent 72c25d9 commit 122b58e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

benchmark/TensorAlgebraBenchmarks/TensorAlgebraBenchmarks.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,10 @@ function _δδ_λ_2D(λ::Float64)
4242
λ)
4343
end
4444

45+
A = TensorValue(1.:9...)
46+
A = A + A' + I3
47+
4548
SUITE["Tensor algebra"]["δδ_μ_2d"] = @benchmarkable δᵢₖδⱼₗ2D + δᵢₗδⱼₖ2D
4649
SUITE["Tensor algebra"]["δδ_λ_2d"] = @benchmarkable 1.0 * δᵢⱼδₖₗ2D
50+
SUITE["Tensor algebra"]["Cofactor"] = cof(A)
51+
SUITE["Tensor algebra"]["Det(A)Inv(A')"] = det(A)*inv(A')

0 commit comments

Comments
 (0)