Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98782

Re: don't understand matrix-multiplication should be reversed in python?

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Gregory Ewing <greg.ewing@canterbury.ac.nz>
Newsgroups comp.lang.python
Subject Re: don't understand matrix-multiplication should be reversed in python?
Date Sat, 14 Nov 2015 13:12:24 +1300
Lines 15
Message-ID <dancjaFn10oU1@mid.individual.net> (permalink)
References <ecc7eec6-3298-4f80-9bfb-eeecd3eeeb3a@googlegroups.com> <mailman.280.1447365421.16136.python-list@python.org> <11344ffd-f594-4059-8c41-6bacbdb66f10@googlegroups.com> <mj2c4b55qf6cfcbsh96465lmah3908hjpv@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net Wix7B6PXNZuGe0s54U2uZwPgb9YbkSm1g+Z3sUFfM9Bf76Uo1R
Cancel-Lock sha1:A3eGqSrAyxqzuGgUN4f8bqRMjT0=
User-Agent Mozilla Thunderbird 1.0.5 (Macintosh/20050711)
X-Accept-Language en-us, en
In-Reply-To <mj2c4b55qf6cfcbsh96465lmah3908hjpv@4ax.com>
Xref csiph.com comp.lang.python:98782

Show key headers only | View raw


Dave Farrance wrote:
> Yep, he's evidently used to the Matlab/Octave way of defining "vectors"
> which is somewhat easier for a math-oriented interactive environment.
> 
> It's just a *bit* more laborious to append columns in numpy.

Yes, that's probably the main reason to do things that way.
A collection of vectors is most conveniently represented as
a 2D array where the first index selects one of the vectors.
But then to apply a transformation matrix to all the vectors,
you need to transpose the matrix and multiply it on the
right.

-- 
Greg

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

don't understand matrix-multiplication should be reversed in python? PythonDude <mjoerg.phone@gmail.com> - 2015-11-12 07:57 -0800
  Re: don't understand matrix-multiplication should be reversed in python? Ian Kelly <ian.g.kelly@gmail.com> - 2015-11-12 09:34 -0700
    Re: don't understand matrix-multiplication should be reversed in python? PythonDude <mjoerg.phone@gmail.com> - 2015-11-13 00:56 -0800
  Re: don't understand matrix-multiplication should be reversed in python? Robert Kern <robert.kern@gmail.com> - 2015-11-12 21:56 +0000
    Re: don't understand matrix-multiplication should be reversed in python? PythonDude <mjoerg.phone@gmail.com> - 2015-11-13 00:57 -0800
      Re: don't understand matrix-multiplication should be reversed in python? Dave Farrance <df@see.replyto.invalid> - 2015-11-13 16:35 +0000
        Re: don't understand matrix-multiplication should be reversed in python? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-11-14 13:12 +1300

csiph-web