kronecker                package:spam                R Documentation

_K_r_o_n_e_c_k_e_r _p_r_o_d_u_c_t_s _o_n _s_p_a_r_s_e _m_a_t_r_i_c_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Computes the generalised kronecker product of two arrays, 'X' and
     'Y'.

_U_s_a_g_e:

     kronecker.spam(X, Y, FUN = "*", make.dimnames = FALSE, ...)

_A_r_g_u_m_e_n_t_s:

       X: sparse matrix of class 'spam', a vector or a matrix.

       Y: sparse matrix of class 'spam', a vector or a matrix.

     FUN: a function; it may be a quoted string. See details

make.dimnames: Provide dimnames that are the product of the dimnames of
          'X' and 'Y'. 

     ...: optional arguments to be passed to 'FUN'.

_D_e_t_a_i_l_s:

     The sparseness structure is determined by the ordinary '%x%'.
     Hence, the result of 'kronecker(X, Y, FUN = "+")' is different
     depending on the input.

_V_a_l_u_e:

     An array 'A' with dimensions 'dim(X) * dim(Y)'.

_A_u_t_h_o_r(_s):

     Reinhard Furrer

_E_x_a_m_p_l_e_s:

     # Starting with non-spam objects, we get a spam matrix
     kronecker.spam( diag(2), array(1:4,c(2,2)))

     kronecker( diag.spam(2), array(1:4,c(2,2)))

     # Notice the preservation of sparseness structure: 
     kronecker( diag.spam(2), array(1:4,c(2,2)),FUN="+")

