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.

_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",
     ...)'.

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

     '_p': Object of class '"integer"' of pointers, one for each column,
          to the initial (zero-based) index of elements in the column.

     '_i': Object of class '"integer"' of length nnzero (number of
          non-zero elements).  These are the row numbers for each
          non-zero element in the matrix.

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

     '_n_r_o_w': Object of class '"integer"' - the number of rows in the
          matrix.

_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 = "dgBCMatrix")'

     _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

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

     'dsCMatrix-class', 'dtCMatrix-class'

