dtpMatrix-class            package:Matrix            R Documentation

_P_a_c_k_e_d _t_r_i_a_n_g_u_l_a_r _d_e_n_s_e _m_a_t_r_i_c_e_s

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

     The '"dtpMatrix"' class is the class of triangular, dense, numeric
     matrices in packed storage.  The '"dtrMatrix"' class is the same
     except in nonpacked storage.

_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("dtpMatrix",
     ...)' or by coercion from other classes of matrices.

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

     '_d_i_a_g': Object of class '"character"'. Must be either '"U"', for
          unit triangular (diagonal is all ones), or '"N"'; see
          'triangularMatrix'.

     '_x': Object of class '"numeric"'. The numeric values that
          constitute the matrix, stored in column-major order. For a
          packed square matrix of dimension d * d, 'length(x)' is of
          length d(d+1)/2 (also when 'diag == "U"'!).

     '_D_i_m','_D_i_m_n_a_m_e_s': The dimension (a length-2 '"integer"') and
          corresponding names (or 'NULL'), inherited from the 'Matrix',
          see there.

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

     Class '"ddenseMatrix"', directly. Class '"triangularMatrix"',
     directly. Class '"dMatrix"' and more by class '"ddenseMatrix"'
     etc, see the examples.

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


     %*% 'signature(x = "dtpMatrix", y = "dgeMatrix")': Matrix
          multiplication; ditto for several other signature
          combinations, see 'showMethods("%*%", class = "dtpMatrix")'.

     _c_o_e_r_c_e 'signature(from = "dtpMatrix", to = "dtrMatrix")'

     _c_o_e_r_c_e 'signature(from = "dtpMatrix", to = "matrix")'

     _d_e_t_e_r_m_i_n_a_n_t 'signature(x = "dtpMatrix", logarithm = "missing")':
          ... 

     _d_e_t_e_r_m_i_n_a_n_t 'signature(x = "dtpMatrix", logarithm = "logical")':
          ... 

     _d_i_a_g 'signature(x = "dtpMatrix")': ... 

     _n_o_r_m 'signature(x = "dtpMatrix", type = "character")': ... 

     _n_o_r_m 'signature(x = "dtpMatrix", type = "missing")': ... 

     _r_c_o_n_d 'signature(x = "dtpMatrix", norm = "character")': ... 

     _r_c_o_n_d 'signature(x = "dtpMatrix", norm = "missing")': ... 

     _s_o_l_v_e 'signature(a = "dtpMatrix", b = "missing")': ... 

     _s_o_l_v_e 'signature(a = "dtpMatrix", b = "matrix")': ... 

     _t 'signature(x = "dtpMatrix")': ... 

     _u_n_p_a_c_k 'signature(x = "dtpMatrix")': ... 

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

     Class 'dtrMatrix'

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

     showClass("dtrMatrix")

     example("dtrMatrix-class")
     (p1 <- as(T2, "dtpMatrix"))
     str(p1)
     (pp <- as(T, "dtpMatrix"))
     stopifnot(length(p1@x) == 3, length(pp@x) == 3,
               p1 @ uplo == T2 @ uplo, pp @ uplo == T @ uplo)

