Given matrix product C = A*B
, is there N^2
way to estimate max value in C? Or rather what is a good way to do so?
matrix mul max value estimate
259 views Asked by Anycorn At
3
Given matrix product C = A*B
, is there N^2
way to estimate max value in C? Or rather what is a good way to do so?
How about this:
A
and each column inB
, find the vector-norm squared (i.e. sum of squares). O(n^2)A
and column fromB
, multiply the corresponding vector-norm squareds. O(n^2)The square-root of this will be an upper-bound for
max(abs(C))
. Why? Because, from the Cauchy-Schwartz inequality, we know that|<x,y>|^2 <= <x,x>.<y,y>
, where<>
denotes the inner-product. We have calculated the RHS of this relationship for each point inC
; we therefore know that the corresponding element ofC
(the LHS) must be less.Disclaimer: There may well be a method to give a tighter bound; this was the first thing that came to mind.