Ric Sherlock wrote:
|Using some rough transliteration where
|<- is assign
|_ is high minus
|[] is quad.
|
|In APL+Win with []io <-0
|x <- 3 4 5
|y <- 2 3 9
|
|     x,[_0.5] y
|3 4 5
|2 3 9
|
|Which certainly seems to be equivalent to the behaviour of x,:y in J??
|
|---Randy MacDonald wrote:
|> No, it isn't.
|>
|> Roger Hui wrote:
|> > x,[_0.5] y in APL is equivalent to x,:y in J.

Based on Randy's first response to this question, I researched this more
deeply, and Ken Iverson ("A Dictionary of APL", APL Quote Quad 18:1, p.
14) states the following (which none of my APL books indicated):

A fractional value of  i  in the expression  a,[i]b  provides
*lamination*, inserting a new axis of length 2 between axes  <floor>i
and  <ceiling>i.  For example:

   a <- 3 + b <- <count>3

   a,[.5]b        a,[_.5]b
3 0            3 4 5
4 1            0 1 2
5 2


Harvey
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to