dtRMatrix-class            package:Matrix            R Documentation

_T_r_i_a_n_g_u_l_a_r _S_p_a_r_s_e _C_o_m_p_r_e_s_s_e_d _R_o_w _M_a_t_r_i_c_e_s

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

     The 'dtRMatrix' class is a class of triangular, sparse matrices in
     the compressed, row-oriented format.  In this implementation the
     non-zero elements in the rows are sorted into increasing columnd
     order.

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

     This class is currently still mostly unimplemented!

     Objects can be created by calls of the form 'new("dtRMatrix",
     ...)'.

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


     '_u_p_l_o': Object of class '"character"'. Must be either "U", for
          upper triangular, and "L", for lower triangular. At present
          only the lower triangle form is allowed.

     '_d_i_a_g': Object of class '"character"'. Must be either '"U"', for
          unit triangular (diagonal is all ones), or '"N"'; see
          'triangularMatrix'.

     '_j': 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.

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

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

     '_D_i_m': The dimension (a length-2 '"integer"')

     '_D_i_m_n_a_m_e_s': corresponding names (or 'NULL'), inherited from the
          'Matrix', see there.

_E_x_t_e_n_d_s:

     Class '"dgRMatrix"', directly. Class '"dsparseMatrix"', by class
     '"dgRMatrix"'. Class '"dMatrix"', by class '"dgRMatrix"'. Class
     '"sparseMatrix"', by class '"dgRMatrix"'. Class '"Matrix"', by
     class '"dgRMatrix"'.

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

     No methods currently with class "dsRMatrix" in the signature.

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

     Classes 'dgCMatrix', 'dgTMatrix', 'dgeMatrix'

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

     (m0 <- new("dtRMatrix"))
     (m2 <- new("dtRMatrix", Dim = c(2L,2L),
                             x = c(5, 1:2), p = c(0L,2:3), j= c(0:1,1L)))
     str(m2)
     (m3 <- as(Diagonal(2), "RsparseMatrix"))# --> dtRMatrix

