[R] Kronecker matrix product

Berwin A Turlach berwin at maths.uwa.edu.au
Wed Jul 13 11:44:03 CEST 2005


>>>>> "BT" == Berwin A Turlach <berwin at maths.uwa.edu.au> writes:

    >> tmp <- sapply(1:length(L), function(j, mat, list) kronecker(X[j,,drop=FALSE], L[[j]]), mat=X, list=L)

Uups, should proof read more carefully before hitting the send
button.  This should be, of course:

tmp <- sapply(1:length(L),
              function(j, mat, list) kronecker(mat[j,,drop=FALSE], list[[j]]),
              mat=X, list=L)

Cheers,

        Berwin

========================== Full address ============================
Berwin A Turlach                      Tel.: +61 (8) 6488 3338 (secr)   
School of Mathematics and Statistics        +61 (8) 6488 3383 (self)      
The University of Western Australia   FAX : +61 (8) 6488 1028
35 Stirling Highway                   
Crawley WA 6009                e-mail: berwin at maths.uwa.edu.au
Australia                        http://www.maths.uwa.edu.au/~berwin




More information about the R-help mailing list