/p>
<blockquote>
<div><dl class="simple">
<dt>a=array([[21, 16,  3, 14],</dt><dd><p>[22, 17,  6, 15],
[ 0,  3, 21, 16]])</p>
</dd>
</dl>
<p>In [62]: projection(a)
Out[62]: array([ 14.33333333,12.,10.,15.])</p>
<p>In [73]: projection(a,span=True)
Out[73]:
[array([ 14.33333333,12.,10.,15.]),
array([ 0,  3,  3, 14]),
array([22, 17, 21, 16])]</p>
<p>In [71]: projection(a,expand=True)
Out[71]:
[array([ 14.33333333,12.,10.,15.]),
array([[21, 16,  3, 14],[ 0,  3, 21, 16]]),
array([[22, 17,  6, 15],[ 0,  3, 21, 16]