dMatrix-class             package:Matrix             R Documentation

(_V_i_r_t_u_a_l) _C_l_a_s_s "_d_M_a_t_r_i_x" _o_f "_d_o_u_b_l_e" _M_a_t_r_i_c_e_s

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

     The 'dMatrix' class is a virtual class contained by all actual
     classes of numeric matrices in the 'Matrix' package.  Similarly,
     all the actual classes of logical matrices inherit from the
     'lMatrix' class.

_S_l_o_t_s:

     Common to _all_ matrix object in the package:

     '_D_i_m': Object of class '"integer"' - the dimensions of the matrix
          - must be an integer vector with exactly two non-negative
          values.

     '_D_i_m_n_a_m_e_s': list of length two; each component containing NULL or
          a 'character' vector length equal the corresponding 'Dim'
          element.

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

     There are (relatively simple) group methods (see, e.g., 'Arith')

     _A_r_i_t_h 'signature(e1 = "dMatrix", e2 = "dMatrix")': ... 

     _A_r_i_t_h 'signature(e1 = "dMatrix", e2 = "numeric")': ... 

     _A_r_i_t_h 'signature(e1 = "numeric", e2 = "dMatrix")': ... 

     _M_a_t_h 'signature(x = "dMatrix")': ... 

     _M_a_t_h_2 'signature(x = "dMatrix", digits = "numeric")': this group
          contains 'round()' and 'signif()'.

     _C_o_m_p_a_r_e 'signature(e1 = "numeric", e2 = "dMatrix")': ... 

     _C_o_m_p_a_r_e 'signature(e1 = "dMatrix", e2 = "numeric")': ... 

     _C_o_m_p_a_r_e 'signature(e1 = "dMatrix", e2 = "dMatrix")': ... 

     _S_u_m_m_a_r_y 'signature(x = "dMatrix")': The '"Summary"' group contains
          the seven functions 'max()', 'min()', 'range()', 'prod()',
          'sum()', 'any()', and 'all()'.

     The following methods are also defined for all double matrices:

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

     _e_x_p_m 'signature(x = "dMatrix")': computes the _Matrix
          Exponential_, see 'expm'.

     _z_a_p_s_m_a_l_l 'signature(x = "dMatrix")': ... 

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

     The nonzero-pattern matrix class 'nMatrix', and the numeric matrix
     classes 'dgeMatrix', 'dgCMatrix', and 'Matrix'.

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

      showClass("dMatrix")

      set.seed(101)
      round(Matrix(rnorm(28), 4,7), 2)
      (M <- zapsmall(Matrix(rlnorm(56, sd=10), 4,14)))
      table(as.logical(M == 0))

