D.gnu - Vectorization vs. sql
I think vectorization is very similar to sql. Take matrix multiplication in sql. select a.index1,b.index2, sum(a.value*b.value) into c (index1,index2,value) from a,b where a.index2=b.index1 group by a.index1,b.index2; So, maybe we can make a similar notation for vectorization in D. Something like: vectorize sum(a[i,j]*b[j,k]) into c[i,k] over i=1..l,j=1..m,k=1..n; Just an idea. Knud
Feb 15 2005
On second thought one might need to seperate free from non free indexes. vectorize sum(a[i,j]*b[j,k]) into c[i,k] with i=1..l,k=1..n over j=1..m; On Wed, 16 Feb 2005 02:07:41 +0100, Knud Sørensen wrote:I think vectorization is very similar to sql. Take matrix multiplication in sql. select a.index1,b.index2, sum(a.value*b.value) into c (index1,index2,value) from a,b where a.index2=b.index1 group by a.index1,b.index2; So, maybe we can make a similar notation for vectorization in D. Something like: vectorize sum(a[i,j]*b[j,k]) into c[i,k] over i=1..l,j=1..m,k=1..n; Just an idea. Knud
Feb 16 2005








=?iso-8859-1?q?Knud_S=F8rensen?= <knud NetRunner.all-technology.com>