On fast multiplication of a matrix by its transpose
Jean-Guillaume Dumas Cl´ ement Pernet Alexandre Sedoglavic
Luminy, 3 Mars 2020
Centre de Recherche en Informatique, Signal et Automatique de Lille
On fast multiplication of a matrix by its transpose Jean-Guillaume - - PowerPoint PPT Presentation
On fast multiplication of a matrix by its transpose Jean-Guillaume Dumas Cl ement Pernet Alexandre Sedoglavic Luminy, 3 Mars 2020 Centre de Recherche en Informatique, Signal et Automatique de Lille Strassen-Winograd fast multiplication
Centre de Recherche en Informatique, Signal et Automatique de Lille
Strassen-Winograd fast multiplication algorithm
1
2
3
4
5
6
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 2 / 23
Strassen-Winograd fast multiplication algorithm
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 3 / 23
Strassen-Winograd fast multiplication algorithm
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 3 / 23
Strassen-Winograd fast multiplication algorithm
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 3 / 23
Strassen-Winograd fast multiplication algorithm
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 3 / 23
Strassen-Winograd fast multiplication algorithm
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 4 / 23
Strassen-Winograd fast multiplication algorithm
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 4 / 23
Fast matrix product by its transpose
1
2
3
4
5
6
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 5 / 23
Fast matrix product by its transpose
1
2
3
4
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 6 / 23
Fast matrix product by its transpose
11 a⊺ 21
12 a⊺ 22
1
2
3
4
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 7 / 23
Fast matrix product by its transpose
11 a⊺ 21
12 a⊺ 22
1
2
3
4
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 7 / 23
Fast matrix product by its transpose
1
2
3
4
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 8 / 23
Fast matrix product by its transpose
1
2
3
4
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 9 / 23
Skew orthogonal matrices
1
2
3
4
5
6
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 10 / 23
Skew orthogonal matrices
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 11 / 23
Skew orthogonal matrices
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 11 / 23
Skew orthogonal matrices
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 11 / 23
Skew orthogonal matrices
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 11 / 23
Skew orthogonal matrices
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 11 / 23
Skew orthogonal matrices
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 11 / 23
Skew orthogonal matrices
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 11 / 23
Skew orthogonal matrices
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 11 / 23
Complexity bounds for block algorithms
1
2
3
4
5
6
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 12 / 23
Complexity bounds for block algorithms
aMMω(n) = cωnω s.t. matrix mult. can be done in MMω(n) + o(MMω(n)).
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 13 / 23
Complexity bounds for block algorithms
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 14 / 23
Complexity bounds for block algorithms
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 14 / 23
Complexity bounds for block algorithms
‹
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 15 / 23
Complexity bounds for block algorithms
‹If ω ă log2(6) « 2.585, then 2 ă
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 15 / 23
Space and time efficient implementation
1
2
3
4
5
6
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 16 / 23
Space and time efficient implementation
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 17 / 23
Space and time efficient implementation
2 ˆ n 2 )
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 17 / 23
Space and time efficient implementation
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 18 / 23
Space and time efficient implementation
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 18 / 23
Minimality
1
2
3
4
5
6
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 19 / 23
Minimality
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 20 / 23
Minimality
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 20 / 23
Minimality
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 20 / 23
Minimality
i=1 Si1bSi2bSi3 =
On fast multiplication of a matrix by its transpose JNCF 2020 21 / 23
Minimality
i=1 Si1bSi2bSi3 =
On fast multiplication of a matrix by its transpose JNCF 2020 21 / 23
Minimality
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 22 / 23
Minimality
‹0 =
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 22 / 23
Conclusion
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 23 / 23
Conclusion
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 23 / 23
Conclusion
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose JNCF 2020 23 / 23
Skew orthogonal matrices
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 12 / 30
Skew orthogonal matrices
1
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 12 / 30
Skew orthogonal matrices
1
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 12 / 30
Skew orthogonal matrices
1
2
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 12 / 30
Skew orthogonal matrices
1
2
3
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 12 / 30
Skew orthogonal matrices
1
2
3
4
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 12 / 30
Complexity bounds for block algorithms
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 16 / 30
Complexity bounds for block algorithms
1
2
3
4
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 16 / 30
Minimality
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 24 / 30
Minimality
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 24 / 30
Minimality
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 24 / 30
Minimality
1
2
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 27 / 30
Minimality
1
2
0 0
0 0
1 0
0 1
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 27 / 30
Application to LDL⊺
1
2
3
4
5
6
7
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 28 / 30
Application to LDL⊺
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 29 / 30
Application to LDL⊺
1
2
3
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 29 / 30
Application to LDL⊺
1
2
3
0 β
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 29 / 30
Application to LDL⊺
1
2
3
0 β
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 29 / 30
Application to LDL⊺
1
2
3
0 β
c d
b d ] =
ac+bd c2+d2
0 β
On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 29 / 30
Application to LDL⊺
1
2
3
0 β
c d
b d ] =
ac+bd c2+d2
0 β
γ 0
1 1 ´1
1 2 γ
0 ´ 1
2 γ
1 1 ´1
γ 0
On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 29 / 30
Application to LDL⊺
1
2
3
0 β
c d
b d ] =
ac+bd c2+d2
0 β
γ 0
1 1 ´1
1 2 γ
0 ´ 1
2 γ
1 1 ´1
γ 0
0 γ
0 1 1
0 γ
0 1 1
γ 0
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 29 / 30
Application to LDL⊺
1
2
3
0 β
c d
b d ] =
ac+bd c2+d2
0 β
γ 0
1 1 ´1
1 2 γ
0 ´ 1
2 γ
1 1 ´1
γ 0
0 γ
0 1 1
0 γ
0 1 1
γ 0
γ β
γ β
?
β γ
?
β
β
γ
?
β γ
?
β
β
?
β
0 ? β
1 0
γ
?
β
0 ? β
1 0
Dumas-Pernet-Sedoglavic On fast multiplication of a matrix by its transpose S´ eminaire CAS3C3 29 / 30