Skip to content

Commit c68634d

Browse files
committed
Attempt to fix benchmark
1 parent b6022a4 commit c68634d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

benchmark/TensorAlgebraBenchmarks/TensorAlgebraBenchmarks.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ end
4545
A = TensorValue(1.:9...)
4646
A = A + A' + I3
4747

48+
cofactor() = cof(A)
49+
detinv() = det(A)*inv(A')
50+
4851
SUITE["Tensor algebra"]["δδ_μ_2d"] = @benchmarkable δᵢₖδⱼₗ2D + δᵢₗδⱼₖ2D
4952
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')
53+
SUITE["Tensor algebra"]["Cofactor"] = cofactor()
54+
SUITE["Tensor algebra"]["Det(A)Inv(A')"] = detinv()

0 commit comments

Comments
 (0)