home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / outer < prev    next >
Encoding:
Text File  |  1997-04-23  |  835 b   |  32 lines

  1.     
  2.     _O_u_t_e_r _P_r_o_d_u_c_t _o_f _V_e_c_t_o_r_s
  3.     
  4.          outer(x, y, FUN = "*", ...)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.                x : a vector.
  9.     
  10.                y : a vector.
  11.     
  12.              FUN : a function to use on the outer products, it
  13.                    may be a quoted string.
  14.     
  15.              ... : optional arguments to be passed to fun.
  16.     
  17.     _D_e_s_c_r_i_p_t_i_o_n:
  18.     
  19.          The outer product of the vectors x and y is the matrix
  20.          A with elements A[i, j] = FUN(x[i], y[j], ...).  FUN
  21.          must be a function which expects at least two arguments
  22.          and which operates elementwise on arrays.
  23.     
  24.          This needs to be extended to taking arrays of arbitrary
  25.          dimension for x and y and returns an array of dimension
  26.          c(dim(x), dim(y)).
  27.     
  28.     _E_x_a_m_p_l_e_s:
  29.     
  30.          outer(1:5, 1:5, "+")
  31.     
  32.