Re: Hyperoperators and RFC 207

2001-10-13 Thread Angel Faus
"Jeremy Howard" <[EMAIL PROTECTED]> wrote .. > Hyper-operators (i.e. element-wise array ops) and explicit array threading > are not incompatible. In fact, I wrote RFC 82 (element-wise array ops) > and was heavily involved in RFC 207 (Buddha Buck and I wrote most of RFCs > 202-207 together, but w

Re: Hyperoperators and RFC 207

2001-10-11 Thread Jeremy Howard
[EMAIL PROTECTED] wrote: > > > @arr3 = @arr1[^i] + @arr2[^i] # also @arr[^i] = @arr1[^i] + @arr2[^i] > > > > Hyper-operators do this just fine. > > > Oh yes they do. The point is that the ^i-loop way is better (more powerful and simpler at the same time). > > Maybe the examples where not good en

Re: Hyperoperators and RFC 207

2001-10-11 Thread afaus
> > > @arr3 = @arr1[^i] + @arr2[^i] # also @arr[^i] = @arr1[^i] + @arr2[^i] > > Hyper-operators do this just fine. > Oh yes they do. The point is that the ^i-loop way is better (more powerful and simpler at the same time). Maybe the examples where not good enough. Take the @b ^/ $a expressi

Re: Hyperoperators and RFC 207

2001-10-11 Thread Aaron Sherman
On Thu, Oct 11, 2001 at 08:06:15PM +0200, Angel Faus wrote: > > Maybe i should better explain myself with an example. > > @arr3 = @arr1[^i] + @arr2[^i] # also @arr[^i] = @arr1[^i] + @arr2[^i] Hyper-operators do this just fine. > @arr4 = $v * @arr1[^i] > $sum =+ @arr1[^i] > @lengths_array =

Hyperoperators and RFC 207

2001-10-11 Thread Angel Faus
Hi to all, I have been thinking lately about hyperoperators, and particulary about its similarity with RFC 207 (Arrays: Efficient Array Loops) For the ones that don't have the RFC in mind, I copy its abstract: >This RFC proposes a notation for creating efficient implicit >loops over mul