apply                  package:gmp                  R Documentation

_a_p_p_l_y _o_v_e_r _a _m_a_t_r_i_x

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

     Theses functions overload apply function for big rationals and big
     integers

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

     apply(X, MARGIN, FUN)

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

       X: A matrix of class bigz or bigq

  MARGIN: 1: apply function on rows; 2: apply function of columns

     FUN: function to be applied

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

     return a vector of class bigz or bigq.

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

     Antoine Lucas

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

     'apply'

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

       x = as.bigz(matrix(1:12,3))
       apply(x,1,min)
       apply(x,2,max)
       
       x = as.bigq(matrix(1:12,3))
       apply(x,1,min)
       apply(x,2,max)
       

