dgCMatrix-class            package:Matrix            R Documentation

_C_o_m_p_r_e_s_s_e_d, _s_p_a_r_s_e, _c_o_l_u_m_n-_o_r_i_e_n_t_e_d _n_u_m_e_r_i_c _m_a_t_r_i_c_e_s

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

     The 'dgCMatrix' class is a class of sparse numeric matrices in the
     compressed, sparse, column-oriented format.  In this
     implementation the non-zero elements in the columns are sorted
     into increasing row order.  'dgCMatrix' is the _standard_ class
     for sparse numeric matrices in the 'Matrix' package.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("dgCMatrix",
     ...)' or often more easily via 'Matrix(*, sparse = TRUE)'.

_S_l_o_t_s:


     '_x': Object of class '"numeric"' - the non-zero elements of the
          matrix.

     ... all other slots are inherited from the superclass
          '"CsparseMatrix"'.


_M_e_t_h_o_d_s:


     _c_o_e_r_c_e 'signature(from = "matrix", to = "dgCMatrix")'

     _c_o_e_r_c_e 'signature(from = "dgCMatrix", to = "matrix")'

     _c_o_e_r_c_e 'signature(from = "dgCMatrix", to = "dgTMatrix")'

     _c_r_o_s_s_p_r_o_d 'signature(x = "dgCMatrix", y = "missing")' returns
          't(x) %*% x' as an 'dsCMatrix' object.

     _c_r_o_s_s_p_r_o_d 'signature(x = "dgCMatrix", y = "matrix")': ... 

     _c_r_o_s_s_p_r_o_d 'signature(x = "dgCMatrix", y = "numeric")': ... 

     _d_i_a_g 'signature(x = "dgCMatrix")': returns the diagonal of 'x'

     _d_i_m 'signature(x = "dgCMatrix")': returns the dimensions of 'x'

     _i_m_a_g_e 'signature(x = "dgCMatrix")': plots an image of 'x' using
          the 'levelplot' function

     _l_u 'signature(x = "dgCMatrix")': computes the LU decomposition of
          a square 'dgCMatrix' object

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

     Classes 'dsCMatrix', 'dtCMatrix', 'lu'

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

     (m <- Matrix(c(0,0,2:0), 3,5))
     str(m)
     m[,1]

