Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

SETQ

source files: [cx]lsp.[ch]

SYNTAX

(setq :ARY <expression>)
(setq (list :ARY-X :ARY-Y :ARY-Z) <expression>)

DESCRIPTION

The first form of this operator computes the value of <expression> and copies it into array :ARY within the relation. If :ARY does not exist, it will be created, and given the type of the expression (float/int32/bit). If :ARY already exists, the <expression> will be coerced to the type of :ARY.

The second form of this operator will assign the three components of <expression> (which must be of type vector -- result of a (LIST x y z) or of operators such as .* that yield a vector result) to the three arrays given. The arrays need not be of CLASS-FLOAT-ARRAY. If they do not exist, they will be created as CLASS-FLOAT-ARRAYs.


Go to the first, previous, next, last section, table of contents.