<div dir="ltr"><div dir="ltr">Ah, I see.. <div> You're suggesting we need to support MxNxP matrices (or more).</div><div> I think an earlier version of the model had an abstract Matrix, with Matrix2D.. we could go back to that, allowing for Matrix3D, etc extensions. </div><div> Or forgo the abstract head and just rename it. </div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 3, 2020 at 9:20 AM Laurent MICHEL <<a href="mailto:laurent.michel@astro.unistra.fr">laurent.michel@astro.unistra.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Mark,<br>
<br>
To me, a (N,M) matrix is a 2D matrix with N rows and M columns (e.g. a <br>
pixel array).<br>
You want to model a ND matrix, you have to set N (matrix dimension) as <br>
an attribute plus an array of N values giving the size along of each <br>
individual axis.<br>
If you want to specifically model a 2D matrix, it would be better have 2 <br>
attributes with a non confusing names (e.g. columns, rows)<br>
<br>
Laurent<br>
<br>
Le 02/04/2020 à 16:47, CresitelloDittmar, Mark a écrit :<br>
> Not sure I follow. Wouldn't a Matrix2D be a Matrix with M=2, N=2?<br>
> We could discuss the names, but these seemed pretty standard and are <br>
> described as M rows, N columns. I know I always have to go back and <br>
> review which way is rows and which is columns, but I don't deal with <br>
> matrices very often.<br>
> <br>
> <br>
> <br>
> On Thu, Apr 2, 2020 at 8:50 AM Laurent MICHEL <br>
> <<a href="mailto:laurent.michel@astro.unistra.fr" target="_blank">laurent.michel@astro.unistra.fr</a> <br>
> <mailto:<a href="mailto:laurent.michel@astro.unistra.fr" target="_blank">laurent.michel@astro.unistra.fr</a>>> wrote:<br>
> <br>
> Dear,<br>
> <br>
> Comment #3:<br>
> <br>
> - The matrix operation class (Matrix) seems to refer to a 2D matrix.<br>
> The<br>
> class could be renamed Matrix2D to keep room for future high<br>
> dimensionality classes<br>
> <br>
> - The matrix dimensions are named N and M. Personally, I'm pretty sure<br>
> to always confuse N.M and M.N. It could be safer to renamed these<br>
> attributes with something more expressive like (row, columns)<br>
> <br>
> LM<br>
> -- <br>
> -- <br>
> ---- Laurent MICHEL Tel (33 0) 3 68 85 24 37<br>
> Observatoire de Strasbourg Fax (33 0) 3 68 85 24 32<br>
> 11 Rue de l'Universite Mail<br>
> <a href="mailto:laurent.michel@astro.unistra.fr" target="_blank">laurent.michel@astro.unistra.fr</a> <mailto:<a href="mailto:laurent.michel@astro.unistra.fr" target="_blank">laurent.michel@astro.unistra.fr</a>><br>
> 67000 Strasbourg (France) Web <a href="http://astro.u-strasbg.fr/~michel" rel="noreferrer" target="_blank">http://astro.u-strasbg.fr/~michel</a><br>
> ---<br>
> <br>
<br>
-- <br>
---- Laurent MICHEL Tel (33 0) 3 68 85 24 37<br>
Observatoire de Strasbourg Fax (33 0) 3 68 85 24 32<br>
11 Rue de l'Universite Mail <a href="mailto:laurent.michel@astro.unistra.fr" target="_blank">laurent.michel@astro.unistra.fr</a><br>
67000 Strasbourg (France) Web <a href="http://astro.u-strasbg.fr/~michel" rel="noreferrer" target="_blank">http://astro.u-strasbg.fr/~michel</a><br>
---<br>
</blockquote></div>