isSymmetric               package:spam               R Documentation

_T_e_s_t _i_f _a _s_p_a_m _m_a_t_r_i_x _i_s _S_y_m_m_e_t_r_i_c

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

     Efficient function to test if 'object' is symmetric or not.

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

     isSymmetric.spam(object, tol = 100 * .Machine$double.eps, ...)

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

  object: a 'spam' matrix.

     tol: numeric scalar >= 0.  Smaller differences are not considered,
          see 'all.equal.spam'.

     ...: further arguments passed to 'all.equal.spam'.

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

     symmetry is assessed by comparing the sparsity structure of
     'object' and 't(object)' via the function 'all.equal.spam'.

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

     logical indicating if 'object' is symmetric or not.

_A_u_t_h_o_r(_s):

     Reinhard Furrer

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

     'all.equal.spam'.

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

     obj <- diag.spam(2)
     isSymmetric(obj)

     obj[1,2] <- .Machine$double.eps
     isSymmetric(obj)

