dtrMatrix-class            package:Matrix            R Documentation

_T_r_i_a_n_g_u_l_a_r, _d_e_n_s_e, _n_u_m_e_r_i_c _m_a_t_r_i_c_e_s

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

     The '"dtrMatrix"' class is the class of triangular, dense, numeric
     matrices in nonpacked storage.  The '"dtpMatrix"' class is the
     same except in packed 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("dtrMatrix",
     ...)'.

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

     '_D_i_m': Object of class '"integer"'. The dimensions of the matrix
          which must be a two-element vector of non-negative integers.

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

     Class '"ddenseMatrix"', directly. Class '"triangularMatrix"',
     directly. Class '"Matrix"' and others, by class '"ddenseMatrix"'.

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


     %*% 'signature(x = "dtrMatrix", y = "matrix")' and other
          signatures (use 'showMethods("%*%", class="dtrMatrix")'):
          matrix multiplication.

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

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

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

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

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

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

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

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

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

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

     Classes 'ddenseMatrix', 'dtpMatrix', 'triangularMatrix'

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

     (m <- rbind(2:3, 0:-1))
     (M <- as(m, "dgeMatrix"))

     (T <- as(M, "dtrMatrix")) ## upper triangular is default
     (T2 <- as(t(M), "dtrMatrix"))
     stopifnot(T@uplo == "U", T2@uplo == "L", identical(T2, t(T)))

