dotprod                package:onion                R Documentation

_E_u_c_l_i_d_e_a_n _e_v_e_n _p_r_o_d_u_c_t

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

     Euclidean even product; dot product of two onions

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

     dotprod(x, y)

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

     x,y: Onionic vectors

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

     Returns the Euclidean even product of two onionic vectors.  That
     is, if 'x' and 'y' are eight-element vectors of the components of
     two onions, return 'sum(x*y)'.

     Note that the returned value is a numeric vector (compare '%<.>%',
     'e.even()', which return onionic vectors with zero imaginary
     part).

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

     Robin K. S. Hankin

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

     'prods'

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

     a <- roct(5)
     b <- roct(1)

     a %.% b
     a %.% (a+3)

