tr                package:fUtilities                R Documentation

_T_r_a_c_e _o_f _a _M_a_t_r_i_x

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

     Returns trace of a matrix.

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

     tr(x)

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

       x: a numeric matrix. 

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

     The function 'tr' computes the trace of a square matrix which is
     the sum of the diagonal elements of the matrix under
     consideration.

_R_e_f_e_r_e_n_c_e_s:

     Golub, van Loan, (1996); _Matrix Computations_,  3rd edition.
     Johns Hopkins University Press.

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

     ## Create Pascal Matrix:
        P = pascal(3)
        P
       
     ## Trace:
        tr(P)                                  

