Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!noao!amethyst!math.arizona.edu!weg From: weg@convx1.ccit.arizona.edu (Eythan Weg) Newsgroups: comp.lang.apl Subject: Re: Do I really need a loop? Message-ID: Date: 15 May 91 20:36:38 GMT References: <3970004@hpwrce.HP.COM> <15160018@hpdmd48.boi.hp.com> <1991May15.120900.15736@watmath.waterloo.edu> Sender: news@amethyst.math.arizona.edu Organization: University of Arizona, Economics Dept. Lines: 14 In-reply-to: ljdickey@watmath.waterloo.edu's message of 15 May 91 12:09:00 GMT In article <1991May15.120900.15736@watmath.waterloo.edu> ljdickey@watmath.waterloo.edu (L.J.Dickey) writes: In article <15160018@hpdmd48.boi.hp.com> rrr@hpdmd48.boi.hp.com (Rudi Rynders) writes: ... >I would convert the vector V = 7 8 to a matrix the same size as M and >fill it with a row of sevens and eigths as in VM assign 2 3 rho 7 7 7 8 8 8 >and then multiply M by VM to get the desired answer. And, If you choose to use J, you could write M * |: (|. $ M) $ V In J I would write M*"1 0 V. Eythan