Re: [R] Row-wise kronecker product with Matrix package

2012-02-09 Thread ilai
Maybe one of these will improve: >help.search('kronecker') ... spam::kronecker Kronecker Products on Sparse Matrices spam::spam.classClass "spam" base::kronecker Kronecker Products on Arrays Matrix::kronecker-methods Methods for Function 'kronecker()'

[R] Row-wise kronecker product with Matrix package

2012-02-09 Thread Ally
I'm trying to calculate the row-wise kronecker product A \Box B of two sparse matrices A and B, and am struggling to find a quick way to do this that takes advantage of sparseness. I thought a good idea would be to use "rep" to construct 2 matrices of the same dimension of the end product, and m