help-octave
[Top][All Lists]
Advanced

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

Re: R rep equivalent in octave


From: CdeMills
Subject: Re: R rep equivalent in octave
Date: Sun, 10 Jul 2011 00:54:31 -0700 (PDT)

forkandwait wrote:
> 
> 
> repmat is the most idiomatic in the matlab world, as far as I know.
> 
> For more fun, though, 'help kron' for kronecker multiplication.
> 
> 
I have to disagree with you. When repmat appeared, I substitued in my code
'kron' by 'repmat', the two main advantages are:
- predictibility. With kron, the shape of the output depends from the shape
of both inputs. Getting the right repetition (rowise vs. columnwise) is not
self-evident
- performances. Basically, kron is a multiplicative framework. You waste CPU
cycles computing values whose result is known.

Regards

Pascal 

--
View this message in context: 
http://octave.1599824.n4.nabble.com/R-rep-equivalent-in-octave-tp3655166p3657308.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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