Skip to content
Prev 115423 / 398498 Next

Looking for a cleaner way to implement a setting certainindices of a matrix to 1 function

On Tuesday 08 May 2007 05:45:53 pm Leeds, Mark (IED) wrote:
I think, the kronecker product method (by Gabor) is a cleaner solution. 
Something like:

kronecker(matrix(1,1,Lagnum), diag(K)).

My experience with such constructions, in really large dimensions, is that: 
kronecker(...) is much faster than {r,c}binds and rep(...).

Regards
PK