<div dir="ltr"><div><div>Hello,<br><br></div>Sorry to disturb again, but the topic still bugs me somehow...<br></div><div>I'll try to rephrase the question:<br><br></div><div>- What's the influence of the type of N-array representation with respect to TENSOR-calculus?<br></div><div>- Are multiple representations possible?<br></div><div>- I assume that the order of the dimensions plays a major role in for example TENSOR product.<br></div><div>Is this assumption correct?<br> </div><div><br></div><div>As I said before, my math skills are lacking in this area... <br></div><div>I hope you consider this a valid question.<br><br></div><div>kind regards,<br></div><div>Dieter<br></div><div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 30, 2015 at 2:32 AM, Alexander Belopolsky <span dir="ltr"><<a href="mailto:ndarray@mac.com" target="_blank">ndarray@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><br><div class="gmail_quote">On Mon, Jan 26, 2015 at 6:06 AM, Dieter Van Eessen <span dir="ltr"><<a href="mailto:dieter.van.eessen@gmail.com" target="_blank">dieter.van.eessen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>I've read that numpy.array isn't arranged according to the 'right-hand-rule' (right-hand-rule => thumb = +x; index finger = +y, bend middle finder = +z). This is also confirmed by an old message I dug up from the mailing list archives. (see message below)<br></div></blockquote></div><div class="gmail_extra"><br></div></span>Dieter,<br><br></div><div class="gmail_extra">It looks like you are confusing dimensionality of the array with the dimensionality of a vector that it might store.  If you are interested in using numpy for 3D modeling, you will likely only encounter 1-dimensional arrays (vectors) of size 3 and 2-dimensional arrays  (matrices) of size 9 or shape (3, 3).</div><div class="gmail_extra"><br></div><div class="gmail_extra">A 3-dimensional array is a stack of matrices and the 'right-hand-rule' does not really apply.  The notion of C/F-contiguous deals with the order of axes (e.g. width first or depth first) while the right-hand-rule is about the direction of the axes (if you "flip" the middle finger right hand becomes left.)  In the case of arrays this would probably correspond to little-endian vs. big-endian: is a[0] stored at a higher or lower address than a[1].  However, whatever the answer to this question is for a particular system, it is the same for all axes in the array, so right-hand - left-hand distinction does not apply. </div></div>
<br>_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">gtz,<br>Dieter VE<br></div>
</div></div></div></div>