dgRMatrix-class            package:Matrix            R Documentation

_S_p_a_r_s_e _C_o_m_p_r_e_s_s_e_d, _R_o_w-_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 'dgRMatrix' class is a class of sparse numeric matrices in the
     compressed, sparse, row-oriented format.  In this implementation
     the non-zero elements in the rows are sorted into increasing
     column order.

     *Note:* Currently, the column-oriented sparse classes, e.g.,
     'dgCMatrix', are preferred and better supported 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("dgRMatrix",
     ...)'.

_S_l_o_t_s:


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

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

     '_x': Object of class '"numeric"' - the non-zero elements of the
          matrix.

     '_D_i_m': Object of class '"integer"' - the dimensions of the matrix.

_M_e_t_h_o_d_s:


     _c_o_e_r_c_e 'signature(from = "matrix", to = "dgRMatrix")'

     _c_o_e_r_c_e 'signature(from = "dgRMatrix", to = "matrix")'

     _c_o_e_r_c_e 'signature(from = "dgRMatrix", to = "dgTMatrix")'

     _d_i_a_g 'signature(x = "dgRMatrix")': returns the diagonal of 'x'

     _d_i_m 'signature(x = "dgRMatrix")': returns the dimensions of 'x'

     _i_m_a_g_e 'signature(x = "dgRMatrix")': plots an image of 'x' using
          the 'levelplot' function

_S_e_e _A_l_s_o:

     the 'dgCMatrix' class.

