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