Skip to content

Added third-order tensor transpose - #217

Merged
miguelmaso merged 2 commits into
mainfrom
transpose-3
Aug 11, 2026
Merged

Added third-order tensor transpose#217
miguelmaso merged 2 commits into
mainfrom
transpose-3

Conversation

@miguelmaso

Copy link
Copy Markdown
Collaborator

Added third-order tensor transpose

@github-actions

Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main 2cb6c05... main / 2cb6c05...
Constitutive models/Visco-elastic Ψ 0.0386 ± 0.017 ms 0.0387 ± 0.017 ms 0.998 ± 0.63
Constitutive models/Visco-elastic ∂Ψ∂F 0.0318 ± 0.0034 ms 0.0322 ± 0.013 ms 0.988 ± 0.41
Constitutive models/Visco-elastic ∂∂Ψ∂FF 0.0676 ± 0.032 ms 0.0671 ± 0.032 ms 1.01 ± 0.67
Constitutive models/Visco-polyconvex Ψ 0.16 ± 0.01 μs 0.161 ± 0.01 μs 0.994 ± 0.088
Constitutive models/Visco-polyconvex ∂Ψ∂F 0.18 ± 0.001 μs 0.18 ± 0.001 μs 1 ± 0.0079
Constitutive models/Visco-polyconvex ∂∂Ψ∂FF 7.3 ± 6 μs 7.28 ± 6 μs 1 ± 1.2
Simulations/StaticMechanicalDirichlet 0.134 ± 0.0081 s 0.133 ± 0.0076 s 1 ± 0.083
Simulations/StaticMechanicalNeumann 0.122 ± 0.012 s 0.127 ± 0.017 s 0.963 ± 0.16
Simulations/ViscoElastic 12.5 s 12.6 s 0.99
Tensor algebra/Cofactor 0.08 ± 0.001 μs 0.08 ± 0.009 μs 1 ± 0.11
Tensor algebra/Det(A)Inv(A') 0.12 ± 0.01 μs 0.13 ± 0.031 μs 0.923 ± 0.23
Tensor algebra/IIsym 0.08 ± 0.01 μs 0.07 ± 0.01 μs 1.14 ± 0.22
Tensor algebra/push_forward_C_to_F 0.301 ± 0.011 μs 0.301 ± 0.01 μs 1 ± 0.049
Tensor algebra/×ᵢ⁴ 0.07 ± 0.01 μs 0.07 ± 0.001 μs 1 ± 0.14
Tensor algebra/δδ_λ_2d 30 ± 0 ns 30 ± 0 ns 1 ± 0
Tensor algebra/δδ_μ_2d 30 ± 0 ns 30 ± 0 ns 1 ± 0
time_to_load 2.6 ± 0.029 s 2.61 ± 0.015 s 0.995 ± 0.013
Memory benchmarks
main 2cb6c05... main / 2cb6c05...
Constitutive models/Visco-elastic Ψ 0.542 k allocs: 0.0443 MB 0.542 k allocs: 0.0443 MB 1
Constitutive models/Visco-elastic ∂Ψ∂F 0.593 k allocs: 0.0492 MB 0.593 k allocs: 0.0492 MB 1
Constitutive models/Visco-elastic ∂∂Ψ∂FF 1.05 k allocs: 0.0853 MB 1.05 k allocs: 0.0853 MB 1
Constitutive models/Visco-polyconvex Ψ 0 allocs: 0 B 0 allocs: 0 B
Constitutive models/Visco-polyconvex ∂Ψ∂F 0 allocs: 0 B 0 allocs: 0 B
Constitutive models/Visco-polyconvex ∂∂Ψ∂FF 0.187 k allocs: 15.2 kB 0.187 k allocs: 15.2 kB 1
Simulations/StaticMechanicalDirichlet 1.51 M allocs: 0.108 GB 1.51 M allocs: 0.108 GB 1
Simulations/StaticMechanicalNeumann 1.48 M allocs: 0.0927 GB 1.48 M allocs: 0.0927 GB 1
Simulations/ViscoElastic 0.162 G allocs: 12.8 GB 0.162 G allocs: 12.8 GB 1
Tensor algebra/Cofactor 2 allocs: 0.156 kB 2 allocs: 0.156 kB 1
Tensor algebra/Det(A)Inv(A') 4 allocs: 0.25 kB 4 allocs: 0.25 kB 1
Tensor algebra/IIsym 1 allocs: 0.656 kB 1 allocs: 0.656 kB 1
Tensor algebra/push_forward_C_to_F 1 allocs: 0.656 kB 1 allocs: 0.656 kB 1
Tensor algebra/×ᵢ⁴ 1 allocs: 0.656 kB 1 allocs: 0.656 kB 1
Tensor algebra/δδ_λ_2d 0 allocs: 0 B 0 allocs: 0 B
Tensor algebra/δδ_μ_2d 0 allocs: 0 B 0 allocs: 0 B
time_to_load 0.149 k allocs: 11.1 kB 0.149 k allocs: 11.1 kB 1

@miguelmaso
miguelmaso merged commit 3878066 into main Aug 11, 2026
4 checks passed
@miguelmaso
miguelmaso deleted the transpose-3 branch August 11, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant