[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dot product (nx1).*(nxm)

From: Andre Bonfrer
Subject: Dot product (nx1).*(nxm)
Date: Sun, 05 Dec 1999 11:54:37 +1100

I'm trying to minimise a function that requires a lot of dot products of
form  (dimensions)
e.g. p .* v
p is size nx1
v is size nxm

Right now I'm using kron(p,ones(1,m)).*v but it's very slow.
I'm using Octave 2.1.9 on RH6.1, and I've searched the faq's, archives
etc. but
don't seem to be able to find any way of doing this.

Can anyone help?  Are there any functions out there that may be a little

faster than the kron product?

Andre Bonfrer
The Coles Myer Center for Retailing and Marketing
Melbourne Business School
200 Leicester Street
Carlton, VIC 3053
Tel: 61 3 9349 8194
Fax: 61 3 9349 8193
Email: address@hidden

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]