<div dir="ltr"><div><div><div><div>First of all I&#39;ve started using some of the new math and prob stuff &quot;for real&quot; and it&#39;s all fantastic work.  Thank you.<br><br>Was looking for a routine for sums of a matrix along the either the rows or cols axis.<br>
<br></div>See <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.sum.html">http://docs.scipy.org/doc/numpy/reference/generated/numpy.sum.html</a><br><br></div>I didn&#39;t notice anything but looks straightforward with matrix-map-rows/cols or similar.  As I started one thing I noticed was the treatment of Matrix Rows and Cols as themselves a Matrix and not as a flat Array.  <br>
<br>&gt; matrix-row<br>- : (All (A) ((Array A) Integer -&gt; (Array A)))<br>#&lt;procedure:matrix-row&gt;<br>&gt; (matrix-row m 0)<br>- : (Array Positive-Byte)<br>(array #[#[1 2]])<br><br>In lieu of (array #[#[1 2]]) I would have expected (array #[1 2]).   In 
other words, a row or column of a matrix is a row or column vector.<br><br></div><div>in fact currently<br><br>&gt; (matrix-row (matrix-row (matrix-row (matrix-row m 0) 0) 0) 0)<br>- : (Array Positive-Byte)<br>(array #[#[1 2]])<br>
</div><br></div><div>What is the advantage of current approach?<br><br></div><div>Thanks,<br><br>Ray<br></div><div><br></div><br> </div>