Purpose
Get the value of an element
of a set.
Synopsis
XPRMalltypes *getelsetval(XPRMcontext ctx, XPRMset set, int ind,
XPRMalltypes *value);
Arguments
|
ctx
|
Mosel's execution context
|
|
set
|
Reference to a set
|
|
ind
|
Index number
|
|
value
|
Pointer to an area where the result is returned
|
Return value
The fourth argument or NULL.
Further information
1.
This function returns the value of the element
of a given set denoted by the given index number.
The result is copied to the argument value.
2.
When getting element values to enumerate the content of a dynamic array
with several dimensions, the use of
mapset/
unmapset
may increase significantly the efficiency of
getelsetval.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.