Assuming you have three-d vector "data" associated with your three-d vector "positions", then pass your field to Compute, and fill in the compute "_expression_". Here are some examples:

To turn your three-d vector data into two-d vector data, dropping the middle value:
_expression_ = "[a.0, a.2]"

To multiply the third component of your three-d vector data by 10:
_expression_ = "[a.0, a.1, 10*a.2]"

To multiply the whole vector by 10:
_expression_ = "10*a"

Hope these help

(If in fact you actually want to modify your *positions* which are three-d, then just do a Mark("positions") -> Compute -> Unmark("positions') to move the positions into the "data" component temporarily)



Donna L. Gresh, Ph.D.
Optimization and Mathematical Software Group
IBM T.J. Watson Research Center
(914) 945-2472
http://www.research.ibm.com/people/g/donnagresh
[EMAIL PROTECTED]



"thserra" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

03/17/2004 01:44 PM
Please respond to opendx-users

       
        To:        "opendx-users" <[EMAIL PROTECTED]>
        cc:        
        Subject:        [opendx-users] Compute module



Hi,
I´m just beginning with Open DX, and I´d like to know more about how to use the Compute module to do thinks such as modify 1 dimension of a 3D vector for each point in my database.
 
Thanks a lot

Reply via email to