s-news
[Top] [All Lists]

Re: Matrix multiplications

To: "Bhandari, A (Arjun)" <a.bhandari@abp.nl>
Subject: Re: Matrix multiplications
From: Spencer Graves <spencer.graves@pdf.com>
Date: Mon, 18 Oct 2004 11:38:38 -0700
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <CC024BE5804EBE4D827C6E2ACCA95D38764294@wntsv158.abpnet.nl>
References: <CC024BE5804EBE4D827C6E2ACCA95D38764294@wntsv158.abpnet.nl>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
Could you please provide an example? I can get 100*20*14 x 20*4*4 using "kronecker":
     A <- array(1:6, dim=c(2,3))
     B <- array(7:12, dim=c(3, 2))
     kronecker(A, B)

However, this doesn't sound like what you want. spencer graves

Bhandari, A (Arjun) wrote:

Hi,

I have three matrices

Matrix 1: 100 rows X 20 columns
Matrix 2: 20 rows X 4 columns
Matrix 3: 14 rows X 4 columns

I want to multiply so that I get every row combination, i.e. get a final matrix that has
100*20*14 rows X 28 columns
i.e. every combination of the rows .

Is it possible to do it simplistically using some linear transformations

Thanks in advance.

I use S+6.2 for windows

Best Regards,
Arjun Bhandari




=====DISCLAIMER=================================================================

De informatie in dit e-mailbericht is vertrouwelijk en uitsluitend bestemd voor de geadresseerde. Wanneer u dit bericht per abuis ontvangt, verzoeken wij u contact op te nemen met de afzender per kerende e-mail. Verder verzoeken wij u in dat geval dit e-mailbericht te vernietigen en de inhoud ervan aan niemand openbaar te maken. Wij aanvaarden geen aansprakelijkheid voor onjuiste, onvolledige dan wel ontijdige overbrenging van de inhoud van een verzonden e-mailbericht, noch voor daarbij overgebrachte virussen.

The information contained in this e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail; please delete in this case the e-mail and do not disclose its contents to any person. We don't accept liability for any errors, omiss ions, de lays of receipt or viruses in the contents of this message which arise as a result of e-mail transmission.


--
Spencer Graves, PhD, Senior Development Engineer
O:  (408)938-4420;  mobile:  (408)655-4567



<Prev in Thread] Current Thread [Next in Thread>