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

