Complexity of matrix multiplication
(For Hierarchical matrix)
Complexity of matrix multiplication (For Hierarchical matrix) For - - PowerPoint PPT Presentation
Complexity of matrix multiplication (For Hierarchical matrix) For Usual matrix The naive multiplication algorithm for nxn matrix needs n^3 multiplications (and n^3 additions) Is it Optimal ? No! [Strassen] do better (n^log2
(For Hierarchical matrix)
matrix needs n^3 multiplications (and n^3 additions)
trick akind to Karatsuba Multiplication (for reals), best known algorithms ~n^2.35.
so flexible, we need ways to measure its complexity, to get meaningful complexity estimates of operations we want to perform.
a column: Sparsity
Exact multiplication of hierarchical matrices.
rank k you always get a matrix of rang k!!
represent the tree of the product.
than T.
are r‘ x t‘ with s,s‘ so that r‘ x s‘ is a son of r x s and s‘ x t‘ is a son of s x t.
matrices of rank k on block cl. tree T is a HM on a bl. cl. tree T*T of rank k‘.
max(k, rank of full matrix).
rank a+b.
we must sum at most (p+1)*sparsity products of leaves (or rather (block)minors)
min 2
st sp
leaves of T*T its „cost“.
)) , ( 2 , ) , ( 2 max(
) ( ) , (
k T N k T N k
t s st T T L t r p j j t r U s s r st × ⋅ ∈ × = × ∈ ×
complexity for the storage
matrix by something of such a storage complexity, gives a cost
st
) (
t I st T T L t r I s st × ⋅ ∈ × ×
) , ( ) , (
⋅ ∈ × × = ⋅ ∈ × ×
j T T L t r t I st p j j T T L t r I r st
2
st sp
tree is the maximum on all leaves of nb of pair of descendant (r‘,t‘) (of the leaf) so that there is s‘ with: r‘ x s‘,s‘x t‘ are in T.
summand you will need to calculate a node in the worst case.
putting the product in another tree, what is the rank k‘: H(T,k) x H(T,k) -> H(T,k‘)?
(remember that small admissible m can meld to inadmisible matrices)
truncation
truncation
min 2
st sp
sp k T st
min ) , (
sp mul
2 2 3
previously.
id sp
min 2 2
)) ( # ) 1 ( 184 ) 1 ( 48 )) ( # , max(# ) 1 ( 35
3 3 2 2 . 3 3 3 .
t L C C k p C C p N t L I C C p N
id sp id sp fastformat id sp format
⋅ ⋅ ⋅ ⋅ + ⋅ + ⋅ ⋅ + ⋅ ≤ ⋅ ⋅ ⋅ + ⋅ ≤
)) ( # ) 1 ( 184 ) 1 ( 48 : _ _ )) ( # , max(# ) 1 ( 43 : _
3 3 2 2 3 3 3
t L C C k p C C p tion multiplica truncated Fast t L I C C p tion multiplica Truncated
id sp id sp id sp
⋅ ⋅ ⋅ ⋅ + ⋅ + ⋅ ⋅ + ⋅ ≤ ⋅ ⋅ ⋅ + ⋅ ≤