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)

