Both byLevel and depthFirst work as follows:

They take an initial weight m (a list of n numbers) and an nxn matrix
A known as the Cartan Matrix. This includes the data needed to reflect
a weight in one of the n mirrors associated with the matrix. reflect
is an adverb that takes a Cartan Matrix and returns a dyad d where n d
w is the reflection in the nth mirror of the weight w, returning a new
weight.

The functions generate all possible reflections resulting from
reflections in the mirrors applied to the initial weight. That is,
they return a list of weights.

On 10 September 2010 13:10, Raul Miller <[email protected]> wrote:
> On Fri, Sep 10, 2010 at 4:39 AM, Justin Paston-Cooper
> <[email protected]> wrote:
>>>> including example inputs & outputs
>> http://pastebin.com/vJQ13h0d
>>
>> I've pasted my code there.
>
> That's a fair bit of code, but like it should be readable.
>
> Do you have example usages also?
>
> (It's much easier to understand how code works when
> you have representative data.)
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to