unpack                package:Matrix                R Documentation

_F_u_l_l _S_t_o_r_a_g_e _R_e_p_r_e_s_e_n_t_a_t_i_o_n _o_f _P_a_c_k_e_d _M_a_t_r_i_c_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Expands decompositions stored in compact form into matrix factors.

_U_s_a_g_e:

     unpack(x, ...)

_A_r_g_u_m_e_n_t_s:

       x: a matrix stored in packed form, e.g., of class '"d?pMatrix"'
          where "?" is "t" for triangular or "s" for symmetric. 

     ...: further arguments passed to or from other methods.

_D_e_t_a_i_l_s:

     This is a generic function with special methods for different
     types of packed matrices.  Use 'showMethods("unpack")' to list the
     methods for 'unpack()'.

_V_a_l_u_e:

     A 'Matrix' object containing the full-storage representation of
     'x'.

_E_x_a_m_p_l_e_s:

     showMethods("unpack")
     (cp4 <- chol(Hilbert(4))) # is triangular
     tp4 <- as(cp4,"dtpMatrix")# [t]riangular [p]acked
     str(tp4)
     (unpack(tp4))

     ## Not run: 
     ## once we have Diagonal() :
     unpack(Diagonal( 1:3))
     ## End(Not run)

