help-octave
[Top][All Lists]
Advanced

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

Re: repmat (was "Computing distance matrix robustly")


From: David Bateman
Subject: Re: repmat (was "Computing distance matrix robustly")
Date: Mon, 03 Oct 2005 17:33:11 +0200
User-agent: Mozilla Thunderbird 0.8 (X11/20040923)

Tom Holroyd wrote:


Is there an advantage to using repmat instead of kron as follows:
kron(ones(m, n), X)
vs.
repmat(X, m, n)


In 2.9.3 kron is built-in so it's a huge winner.

Expect that kron is used by repmat for the 2-D cases... repmat also special cases when numel(X) is 1, and handles N-D cases... Its a better habit to use repmat as its generic and just as fast..

D.

--
David Bateman                                address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary



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

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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