February 16, 2005
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
February 16, 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