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

