Scalar product         package:compositions         R Documentation

_P_a_r_a_l_l_e_l _s_c_a_l_a_r _p_r_o_d_u_c_t_s

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

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

     scalar(x,y)
     ## Default S3 method:
     scalar(x,y)
               

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

       x: a vector or a matrix with rows considered as vectors

       y: a vector or a matrix with rows considered as vectors

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

     The scalar product of two vectors is defined as:

                      scalar(x,y):=  sum(x_iy_i)

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

     a numerical vector containing the scalar products of the vectors
     given by x and y. If both 'x' and 'y' contain more than one vector
     the function uses parallel operation like it would happen with an
     ordinary product of vectors.

_N_o_t_e:

     The computation of the scalar product implicitly applies the 'cdt'
     transform, which implies that the scalar products corresponding to
     the given geometries are returned for 'acomp', 'rcomp', 'aplus',
     'rplus'-objects. Even a useful scalar product for factors is
     defined.

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

     scalar

