gsi.csum            package:compositions            R Documentation

_I_n_t_e_r_n_a_l _f_u_n_c_t_i_o_n: _r_o_w _a_n_d _c_o_l_u_m_n _s_u_m_s _o_f _m_a_t_r_i_c_e_s

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

     Abbreviation for collapsing matrices

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

     gsi.csum(x)
     gsi.rsum(x)

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

       x: the matrix

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

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

     gsi.csum computes the sums of all the columns of x and gsi.rsum
     computes the sums of the rows of x. For convenience, only finite
     values are added.

_N_o_t_e:

     Do not use gsi.* functions directly since they are internal
     functions of the package

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

     K.Gerald v.d. Boogaart <URL: http://www.stat.boogaart.de>

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

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

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

     A <- matrix(c(0,1,0,0,0,0),ncol=2)
     b <- diag(3)
     erg <- gsi.svdsolve(A,b)
     erg
     A 
     diag(c(0,1,0))  # richtig

