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))))

