[Top][All Lists]

[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
- performances. Basically, kron is a multiplicative framework. You waste CPU
cycles computing values whose result is known.



View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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