gsi.add             package:compositions             R Documentation

_I_n_t_e_r_n_a_l _f_u_n_c_t_i_o_n_s: _P_a_r_a_l_l_e_l _o_p_e_r_a_t_i_o_n_s _o_f _s_i_n_g_l_e _a_n_d _m_u_l_t_i_p_l_e _d_a_t_a_s_e_t_s

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

     The given operations are performed in parallel for multiple
     datasets or for two single datasets, or for multiple datasets with
     a single dataset.

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

     gsi.add(x,y)
     gsi.sub(x,y)
     gsi.mul(x,y)
     gsi.div(x,y)
               

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

       x: a vector or a matrix

       y: a vector or a matrix

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

     All operations +,-,*,/ are performed on unclassed objects.

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

     a vector or a matrix with the operated values

_N_o_t_e:

     It is better not to use gsi.* functions directly since they are
     internal functions of the package

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

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

     tmp1 <- matrix(1:12,ncol=3)
     tmp2 <- 1:3
     gsi.add(tmp1,tmp2)
     gsi.sub(tmp1,tmp2)
     gsi.mul(tmp1,tmp2)
     gsi.div(tmp1,tmp2)

     gsi.add(tmp2,tmp2)
     gsi.sub(tmp2,tmp2)
     gsi.mul(tmp2,tmp2)
     gsi.div(tmp2,tmp2)

     gsi.add(tmp1,tmp1)
     gsi.sub(tmp1,tmp1)
     gsi.mul(tmp1,tmp1)
     gsi.div(tmp1,tmp1)

