You are printing out 'c', the original field, rather than 'e', the reduced field.
Greg
Chris Pelkie
<[EMAIL PROTECTED]> To:
[email protected]
Sent by: cc:
[EMAIL PROTECTED] Subject: [opendx-users] Re:
Reduce question
son.ibm.com
08/13/2002 08:07 AM
Please respond to
opendx-users
>A regular 2D grid. This simplified example preserves the result.
>
> > dx -processors 1 -script
> dx> c = Construct( [0,0],{[0,1],[1,0]},[3,3],{0,1,2,3,4,5,6,7,8} );
> dx> d = Post( c, "connections" );
> dx> e = Reduce( d, 2 );
> dx> Print( c, "r", "data" );
> 0: PRINT:
> Field. 4 components.
> Component number 0, name 'positions':
> Component number 1, name 'connections':
> Component number 2, name 'data':
> Generic Array. 9 items, integer, real, scalar
> Attribute. Name 'dep':
>-> String. "positions"
> Component number 3, name 'box':
>
>Randy
I ran the above and got "dep" "connections".
Then I realized that I am still running 4.1.3, so am now installing
4.2 (Windows). I'll let you know if the test changes.
--
Chris Pelkie
Managing Partner
Practical Video LLC
30 West Meadow Drive, Ithaca, NY 14850
