| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (10 out of 18)

Vector Order Swapper


The Vector Order Swapper re-orders the elements of a vector.

To specify how to reorder the elements, choose configure from the block's menu. NeurOn-Line displays a GXL spreadsheet for editing the vectors.

If the dimension on the input vector does not equal the dimension of the block's vector, the block generates an error.

Making Values Permanent

When you choose make permanent from the block's menu, it saves the current swapping order.

Configuring

When you choose configure from the block's menu, NOL displays this dialog, which lets you enter the dimension of the vector to swap:


Enter a value for Vector Dimension, and select the Edit Swap Vector button to display a spreadsheet for swapping the vector.

Here is the spreadsheet for swapping the order of a vector of length 4:


In the Output column, enter the new positions for the indexes. You cannot repeat indexes, and you must use each index once.

When you are done editing the vector, click the OK button in the spreadsheet, and click the OK or Apply button in the configuration panel.

For more information on how to use the spreadsheet, see "Using the GXL Spreadsheet to Edit Data".

Example

This spreadsheet for a Vector Order Swapper reverses the order of the elements in the input vector:


This diagram shows that Vector Order Swapper in action.


See Also

For more information on how to use this block, see the pages below.

Click here for more information...
Basic Block Behavior
Saving a Block's Data After Resetting G2

| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (10 out of 18)

Copyright © 1996, Gensym Corporation, Inc.