dimension               package:magic               R Documentation

_G_e_n_e_r_a_l_i_z_e_d _r_o_w _a_n_d _c_o_l

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

     Given an array, returns an array of the same size whose elements
     are sequentially numbered along the i-th dimension.

     Used by 'magiccube.2np1'.

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

     dimension(a, i)

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

       a: array to be converted

       i: Number of the dimension

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

     An integer matrix with the same dimensions as 'a', with element 
     (n1,n2, ..., n_d) being n_i.

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

     Robin K. S. Hankin

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

     a <- array(0,c(3,3,2,2))
     dimension(a,2)
     (dimension(a,1)+dimension(a,2)+dimension(a,3)+dimension(a,4))%%2

