gsi.svdsolve          package:compositions          R Documentation

_I_n_t_e_r_n_a_l _f_u_n_c_t_i_o_n: _S_o_l_v_e_s _s_i_n_g_u_l_a_r _a_n_d _n_o_n _s_q_u_a_r_e _e_q_u_a_t_i_o_n _s_y_s_t_e_m_s

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

     Based on the singular value decomposition, a singular equation
     system ax=b is solved.

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

     gsi.svdsolve(a,b,...,cond=1E-10)

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

       a: the matrix of ax=b (a.k.a. left-hand side matrix)

       b: the vector or matrix b of ax=b (a.k.a right-hand side, 
          independent element)

    cond: the smallest-acceptable condition of the matrix. Smaller
          singular values are truncate

     ...: additional arguments to svd

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

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

     The "smallest" vector or matrix solving this system with minimal 
     joint error among all vectors.

_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

