<div dir="ltr"><div><div><div><div>First of all I've started using some of the new math and prob stuff "for real" and it'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'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>> matrix-row<br>- : (All (A) ((Array A) Integer -> (Array A)))<br>#<procedure:matrix-row><br>> (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>> (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>