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.

