TsparseMatrix-class          package:Matrix          R Documentation

_C_l_a_s_s "_T_s_p_a_r_s_e_M_a_t_r_i_x" _o_f _S_p_a_r_s_e _M_a_t_r_i_c_e_s _i_n _T_r_i_p_l_e_t _F_o_r_m

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

     The '"TsparseMatrix"' class is the virtual class of all sparse
     matrices coded in triplet form.  Since it is a virtual class, no
     objects may be created from it.  See 'showClass("TsparseMatrix")'
     for its subclasses.

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


     '_D_i_m', '_D_i_m_n_a_m_e_s': from the '"Matrix"' class,

     '_i': Object of class '"integer"' - the row indices of non-zero
          entries _in 0-base_, i.e., must be in '0:(nrow(.)-1)'.

     '_j': Object of class '"integer"' - the column indices of non-zero
          entries.  Must be the same length as slot 'i' and _0-based_
          as well, i.e., in '0:(ncol(.)-1)'.   For numeric Tsparse
          matrices, '(i,j)' pairs can occur more than once, see
          'dgTMatrix'.


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

     Class '"sparseMatrix"', directly. Class '"Matrix"', by class
     '"sparseMatrix"'.

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

     Extraction ('"["') methods, see '[-methods'.

_N_o_t_e:

     Most operations with sparse matrices are performed using the
     compressed, column-oriented or 'CsparseMatrix' representation. 
     The triplet representation is convenient for creating a sparse
     matrix or for reading and writing such matrices.  Once it is
     created, however, the matrix is generally coerced to a
     'CsparseMatrix' for further operations.

     For convenience, methods for some operations such as '%*%' and
     'crossprod' are defined for 'TsparseMatrix' objects.  These
     methods simply coerce the 'TsparseMatrix' object to a
     'CsparseMatrix' object then perform the operation.

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

     its superclass, 'sparseMatrix', and the 'dgTMatrix' class, for the
     links to other classes.

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

     showClass("TsparseMatrix")
     ## or just the subclasses' names
     names(getClass("TsparseMatrix")@subclasses)

