Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpcc05!hpdmd48!rrr From: rrr@hpdmd48.boi.hp.com (Rudi Rynders) Newsgroups: comp.lang.apl Subject: Re: Do I really need a loop? Message-ID: <15160016@hpdmd48.boi.hp.com> Date: 9 May 91 13:57:52 GMT References: <3970004@hpwrce.HP.COM> Organization: Hewlett Packard - Boise, ID Lines: 25 / hpdmd48:comp.lang.apl / kingsley@hpwrce.HP.COM (Kingsley Morse) / 1:05 pm May 8, 1991 / Does anyone know how to do this other than writing a loop? Given a matrix M = 1 2 3 4 5 6 and a vector V = 7 8 I'd like to multiply 1 2 3 by 7, and multiply 4 5 6 by 8. In other words: 1 2 3 x 7 4 5 6 8 The result will be 7 14 21 32 40 48 Instead of writing a loop to do this, does APL have a more concise way? ----------