

crossprod {base}                             R Documentation

_M_a_t_r_i_x _C_r_o_s_s_p_r_o_d_u_c_t

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

     Given matrices `x' and `y' as arguments, `crossprod'
     returns their matrix cross-product.  This is formally
     equivalent to, but faster than, the call `t(x) %*% y'.

_U_s_a_g_e_:

     crossprod(x, y=x)

_S_e_e _A_l_s_o_:

     `outer', matmult.

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

     crossprod(1:4)# = sum(1 + 2^2 + 3^2 + 4^2)
     drop(.Last.value) # scalarized

