matrix                  package:gmp                  R Documentation

_M_a_t_r_i_x _m_a_n_i_p_u_l_a_t_i_o_n _w_i_t_h _g_m_p

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

     Overload of all standard tools usefull for matrix manipulation
     adapted to large numbers.

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

     matrix.bigz(data = NA, nrow = 1, ncol = 1, byrow = FALSE, dimnames = NULL, mod = NA,...)

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

    data: An optional data vector

    nrow: the desired number of rows 

    ncol: the desired number of columns

   byrow: logical. If 'FALSE' (the default) the matrix is filled by
          columns, otherwise the matrix is filled by rows.

dimnames: Not implemented

     mod: Optional modulus

     ...: Not used

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

     Extract function is the same use for vector or matrix. Then,
     'x[i]' return same value as 'x[i,]'.

     Special features concerning bigz class: modulus can be

_U_n_s_e_t Just play with large numbers

_S_e_t _w_i_t_h _a _v_e_c_t_o_r _o_f _s_i_z_e _1 Example:
     'matrix.bigz(1:6,nrow=2,ncol=3,mod=7)' This mean you work in Z/nZ,
     for the whole matrix. It is the only case where %*% and solve
     functions will work in Z/nZ

_S_e_t _w_i_t_h _a _v_e_c_t_o_r _s_m_a_l_l_e_r _t_h_a_n _d_a_t_a Example:
     'matrix.bigz(1:6,nrow=2,ncol=3,mod=1:5)' then modulus is repeated
     to the end of data. This can be used to define matrix with a
     different modulus at each row

_S_e_t _w_i_t_h _s_a_m_e _s_i_z_e _a_s _d_a_t_a Modulus is defined for each cell

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

     A matrix of class bigz or bigq

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

     Antoine Lucas

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

     Solving linear algebra system 'solve.bigz'; 'matrix'

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

