nsyMatrix-class            package:Matrix            R Documentation

_S_y_m_m_e_t_r_i_c _D_e_n_s_e _N_o_n_z_e_r_o-_P_a_t_t_e_r_n _M_a_t_r_i_c_e_s

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

     The '"nsyMatrix"' class is the class of symmetric, dense
     nonzero-pattern matrices in non-packed storage and '"nspMatrix"'
     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("nsyMatrix",
     ...)'.

_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:

     '"nsyMatrix"' extends class '"ngeMatrix"', directly, whereas
      '"nspMatrix"' extends class '"ndenseMatrix"', directly.

     Both extend class '"symmetricMatrix"', directly, and class
     '"Matrix"' and others, _in_directly, use 'showClass("nsyMatrix")',
     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:

     'ngeMatrix', 'Matrix', 't'

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

     (s0 <- new("nsyMatrix"))

     (M2 <- Matrix(c(TRUE, NA,FALSE,FALSE), 2,2)) # logical dense (ltr)
     (sM <- M2 & t(M2))      # "lge"
     class(sM <- as(sM, "nMatrix")) # -> "nge"
          (sM <- as(sM, "nsyMatrix")) # -> "nsy"
     str ( sM <- as(sM, "nspMatrix")) # -> "nsp": packed symmetric

