diagDet                package:Matrix                R Documentation

_D_e_t_e_r_m_i_n_a_n_t _o_f _t_r_i_a_n_g_u_l_a_r _m_a_t_r_i_c_e_s

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

     Return the determinant (or log-determinant) of triangular
     matrices.

_U_s_a_g_e:

     diagDet(x, logarithm=TRUE, ...)

_A_r_g_u_m_e_n_t_s:

       x: a numeric vector representing the diagonal of a triangular or
          a diagonal matrix.

logarithm: logical. When 'TRUE', the default, the logarithm of the
          determinant is returned. When 'FALSE', the determinant of 'x'
          is returned. 

     ...: further arguments passed to or from other methods.

_D_e_t_a_i_l_s:

     The determinant of a triangular matrix can be calculated from its
     diagonal elements only.

_V_a_l_u_e:

     An object of class 'det' as a list with two elements 

 modulus: a numeric value.  The modulus (absolute value) of the
          determinant or the logarithm of the modulus.  The value of
          the 'logarithm' argument is included as an attribute.

    sign: a numeric value, which is +/- 1 according to whether the
          determinant is positive or negative.

     normal-bracket25bracket-normal

_N_o_t_e:

     Often, computing the determinant is _not_ what you should be doing
     to solve a given problem.

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

     'det'

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

     diagDet(1:5)  # log of product
     diagDet(1:5, logarithm = FALSE)

