help-octave
[Top][All Lists]
Advanced

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

Re: broadcast on = operator?


From: Jordi Gutiérrez Hermoso
Subject: Re: broadcast on = operator?
Date: Thu, 20 Sep 2012 21:09:31 -0400

On 20 September 2012 18:44, Francesco Potortì <address@hidden> wrote:
> A pity that the = operator does not broadcast.
> One could do A(17:42,[1 2]) = [5 6];
>
> Are there ways to do that cleanly?

No. I've also wanted that. Numpy allows that, but the semantics can
get a little complicated. I am afraid enabling broadcasting on
assignment will probably have to wait. There have been enough
cargo-culting kindergarteners breaking the Octave development model
for a while.

- Jordi G. H.


reply via email to

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