det                   package:base                   R Documentation

_C_a_l_c_u_l_a_t_e _t_h_e _D_e_t_e_r_m_i_n_a_n_t _o_f _a _M_a_t_r_i_x

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

     `det' calculates the determinant of a matrix either by QR
     decomposition or from the eigenvalues, see `qr' and `eigen'.

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

     det(x, method = c("qr","eigenvalues"))

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

       z: numeric matrix.

  method: `"qr"' (default) or `"eigenvalues"'

_N_o_t_e:

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

     The `"qr"' method is much faster for large matrices.

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

     `eigen', `qr', `svd'

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

     (x <- matrix(1:4, ncol=2))
     det(x)
     det(x, method="eigenvalues")

     det(print(cbind(1,1:3,c(2,0,1))))

