lkgconst - set value segment of a data object to a constant
LIBRARY CALL
int lkgconst(
int wsize,
int hsize,
int dsize,
int tsize,
int esize,
double real,
double imaginary,
int datatype,
kobject object)
INPUT
wsize - The wsize of the object being created
hsize - the height of the object being created
dsize - the depth of the object being created
tsize - the size of the objects time dimension
esize - the objects element dimension size
real - the real component of the constant value
imaginary - imaginary component of the constant value
datatype - datatype value (see above)
OUTPUT
object - the output object
RETURN VALUE
TRUE (1) on success, FALSE (0) on failure
DESCRIPTION
Library Routine for kgconst. lkgconst creates a
constant valued value segment for the destination
data object. The resulting data size is specified by
the wsize, hsize, dsize, tsize, and esize parameters.
The data type of the value segment is specified by
the datatype parameter, and can be KBIT, KBYTE, KUBYTE,
KSHORT, KUSHORT, KINT, KUINT, KLONG, KULONG, KFLOAT,
KDOUBLE, KCOMPLEX and KDCOMPLEX. The value segment will
be set to the real and imaginary constant levels specified
by the "real" and "imaginary" parameters.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
If the value segment already exists, then all data
in the segment will be overwritten with the constant
value in the data type specified in the function call
and the size will be changed to the specfied wsize,
hsize, dsize, tsize and esize.