lsyMatrix-class            package:Matrix            R Documentation

_S_y_m_m_e_t_r_i_c _D_e_n_s_e _L_o_g_i_c_a_l _M_a_t_r_i_c_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     The '"lsyMatrix"' class is the class of symmetric, dense logical
     matrices in non-packed storage and '"lspMatrix"' is the class of
     of these in packed storage.  Only the upper triangle or the lower
     triangle is stored.

_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("lsyMatrix",
     ...)'.

_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.

     '_x': Object of class '"logical"'. The logical values that
          constitute the matrix, stored in column-major order.

     '_D_i_m','_D_i_m_n_a_m_e_s': The dimension (a length-2 '"integer"') and
          corresponding names (or 'NULL'), see the 'Matrix' class.

     '_f_a_c_t_o_r_s': Object of class '"list"'.  A named list of
          factorizations that have been computed for the matrix.

_E_x_t_e_n_d_s:

     '"lsyMatrix"' extends class '"lgeMatrix"', directly, whereas
      '"lspMatrix"' extends class '"ldenseMatrix"', directly.

     Both extend class '"symmetricMatrix"', directly, and class
     '"Matrix"' and others, _in_directly, use 'showClass("lsyMatrix")',
     e.g., for details.

_M_e_t_h_o_d_s:

     Currently, mainly 't()' and coercion methods (for 'as(.)'; use,
     e.g., 'showMethods(class="dsyMatrix")' for details.

_S_e_e _A_l_s_o:

     'lgeMatrix', 'Matrix', 't'

_E_x_a_m_p_l_e_s:

     (M2 <- Matrix(c(TRUE, NA,FALSE,FALSE), 2,2)) # logical dense (ltr)
     str(M2)
     # can
     (sM <- M2 | t(M2)) # "lge"
     as(sM, "lsyMatrix")
     str(sM <- as(sM, "lspMatrix")) # packed symmetric

