Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@robpratt The actual thing I want to maximize is the correlation between all the elements of the two matrices (or something similar) and for N-matrix problem, its probably gonna be the average pairwise correlation.