Ric,

        In case my previous message was not clear: your bm
works as I originally asked, and when I was being critical
of your constraint, I was screwed up.

        I think the following filter could be used before
your original bm to make it work.

filter =: 1r2 > x:@(%/)

        For example
   bm`([EMAIL PROTECTED])@.filter 2 5
0 1 0 1 0
   bm`([EMAIL PROTECTED])@.filter 3 5
1 0 1 0 1

(B=)

On Mon, 4 Feb 2008, Sherlock, Ric wrote:

+ ---Brian Schott wrote:
+ >     I don't think your constraint is expressed quite
+ > right because these work.
+ >
+ >    bm 2 5
+ > 1 0 1 0 1
+ >    bm 3 7
+ > 1 0 1 0 1 0 1
+ >
+ >     But bm 1 5 and bm 2 7 do not work. So we'll have to
+ > work on expressing the constraint.
+
+ Brian,
+ Are you sure that the results above are OK? From the initial description
+ of the problem I would have thought the following were correct?
+    bm 2 5
+ 0 1 0 1 0
+    bm 3 7
+ 0 1 0 1 0 1 0
+
+ If that is not the case then I'm not sure I quite understand the
+ requirements. The most recent version of bm should work for all y.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to