Re: RFC 207 (v1) Array: Efficient Array Loops

2000-09-12 Thread David L. Nicol
> Consider the problem of multiplying together two 2-dimensional tensors. In > standard notation, this would be symbolized by > >Cijkl = Aij * Bkl > > where the letters i, j, k and l are written as subscripts and represent > the indices of their respective tensors. To accomplish that same

Re: RFC 207 (v1) Array: Efficient Array Loops

2000-09-11 Thread Jeremy Howard
Buddha Buck wrote: > > Reading through the examples left me wondering about some > > technicalities: > > > > > @t[|i;|j] = @a[|j;|i]; # transpose 2-d @a > > > > Written like this it would require that @a is exact 2-dim, i.e. it would > > not just swap the first two dims of any n-dim array? I su

Re: RFC 207 (v1) Array: Efficient Array Loops

2000-09-11 Thread Buddha Buck
> Reading through the examples left me wondering about some > technicalities: > > > @t[|i;|j] = @a[|j;|i]; # transpose 2-d @a > > Written like this it would require that @a is exact 2-dim, i.e. it would > not just swap the first two dims of any n-dim array? I suppose if I'd > want that I'd wr

Re: RFC 207 (v1) Array: Efficient Array Loops

2000-09-11 Thread Jeremy Howard
Buddha Buck wrote: > At 12:00 AM 9/12/00 +1100, Jeremy Howard wrote: > >[EMAIL PROTECTED] wrote: > >> Reading through the examples left me wondering about some > >> technicalities: > >> > >> > @t[|i;|j] = @a[|j;|i]; # transpose 2-d @a > >> > >> Written like this it would require that @a

Re: RFC 207 (v1) Array: Efficient Array Loops

2000-09-11 Thread Buddha Buck
Sorry, the mailer did something unexpected... At 12:00 AM 9/12/00 +1100, Jeremy Howard wrote: >[EMAIL PROTECTED] wrote: >> Reading through the examples left me wondering about some >> technicalities: >> >> > @t[|i;|j] = @a[|j;|i]; # transpose 2-d @a >> >> Written like this it would requ

Re: RFC 207 (v1) Array: Efficient Array Loops

2000-09-11 Thread Buddha Buck
At 12:00 AM 9/12/00 +1100, Jeremy Howard wrote: >[EMAIL PROTECTED] wrote: > > Reading through the examples left me wondering about some > > technicalities: > > > > > @t[|i;|j] = @a[|j;|i]; # transpose 2-d @a > > > > Written like this it would require that @a is exact 2-dim, i.e. it would > > no

Re: RFC 207 (v1) Array: Efficient Array Loops

2000-09-11 Thread Jeremy Howard
[EMAIL PROTECTED] wrote: > Reading through the examples left me wondering about some > technicalities: > > > @t[|i;|j] = @a[|j;|i]; # transpose 2-d @a > > Written like this it would require that @a is exact 2-dim, i.e. it would > not just swap the first two dims of any n-dim array? I suppose if

Re: RFC 207 (v1) Array: Efficient Array Loops

2000-09-11 Thread c . soeller
Reading through the examples left me wondering about some technicalities: > @t[|i;|j] = @a[|j;|i]; # transpose 2-d @a Written like this it would require that @a is exact 2-dim, i.e. it would not just swap the first two dims of any n-dim array? I suppose if I'd want that I'd write @t[|i;|