CONTEXT: I am a musician working on a algorithmic composition system. I need to find efficient algorithms to solve some matrix equations. I am not a mathematician or a student and direct answer is appreciated.
I have a very large sparse binary matrix M, where $M\in \{0,1\}^{n\times m}$. I am trying to calculate $N_{i,j}=(M^T.\left(M.M^T\right)^{-1}.M{})_{i,j}$.
EDIT: This is the matrix product of $M^T$ and the Moore-Penrose inverse of $M^T$.
$N_{i,j}$ is an $m\times m$ matrix and is too large to calculate completely -- I just need to find one element at a time.
I suspect there is a simple form for the elements of N. Can anyone show what $N_{i,j}$ looks like?
Thanks again.
Bonus points
I'll take what I can get, but it would be easier if the answer was in terms of these functions. Each row in M can be thought of a set of integers, e.g., the ith set is $\{x : M_{i,x} = 1\}$. I know many of the properties of these sets and can calculate numbers like these easily.
j belongs to set i: $M_{i,j}$
Size of a set (sum of a row): $J_{m}.M_{i}$
Number of sets j belongs to (sum of column): $J_{n}.M^T_{j}$
Size of the intersection of two sets (dot product of rows): $M_{i_{1}}.M_{i_{2}}$
etc.
Let $A=M^T$ and $A^+$ be its Moore-Penrose inverse; we assume that $rank(A)=n\leq m$; then, according to @J. M. is not a mathematician , we consider $Z=AA^+$ and we want to calculate $Z[p,q]$.
$Z$ is the orthogonal projection onto $im(A)$.
Step 1. We seek a basis $\{f_1,\cdots,f_n\}$ of the row space of $M$ and we orthogonalize it.
Step 2. $Z[p,q]=\sum_{k=1}^n<e_p,f_k><f_k,e_q>$, where $(e_i)$ is the canonical basis of $\mathbb{R}^m$.
That follows is a toy maple program with $n=15,m=100,p=14,q=35$. The rational $Z[p,q]$ is in $s$.
Practically, you don't calculate the first line of the following: