Hi Sourav,

well, we do not support Kronecker products K = kron(X,Y) yet. However, as a
workaround you could indeed create a custom permutation matrix P from X,
where

P[1:nrow(Y),] = diag(matrix(as.scalar(X[1,1]),nrow(Y),1))
P[nrow(Y)+1:2*nrow(Y),] = diag(matrix(as.scalar(X[1,2]),nrow(Y),1))
...

and subsequently create a linearized output with

K = P %*% Y

Finally, we provide a reshape matrix constructor matrix(K, rows=...,
cols=...) that allows you to rearrange your entries as needed. If you run
this on large data for X, however, we might want to put this on the roadmap
for 2016. Could you share the characteristics of the workloads you have in
mind?


Regards,
Matthias



From:   Sourav Mazumder <[email protected]>
To:     [email protected]
Date:   12/14/2015 11:56 PM
Subject:        Is there any equivalent of kron function in DML ?



Hi,

Is there any equivalent to kron function (of Matlab) in DML ?

Can I use the matrix multiplication %*% for the same ?

Regards,
Sourav

Reply via email to