Arrays

Access to XPE arrays from external C++ functions
Accessing elements of an XPE array
one dimentional
two dimentional
multi-dimentional
Determining the number of dimensions in an XPE array
Determining the number of elements in XPE array
one dimensional
uniform multi-dimensional
Performing operations on groups of elements of an XPE array
simple non-optimised access
optimised access
creating a new array
one dimentional
four dimentional
named one dimentional XPE array

 

accessing elements of an XPE array

 

determining the number of elements in a one dimensional XPE array

	int	len;

	len = XPE::get_variable("fred").get_array().get_len();

 

determining the number of dimensions in an XPE array

	int	cnt;

	cnt = XPE::get_variable("fred").get_array().get_dim_cnt();

 

determining the number of elements in each dimension of a uniform multi-dimensional XPE array

	XPE::ARRAY
		array;

	int	cnt;

	int	size_of_dimension[100];


	array = XPE::get_variable("fred").get_array();

	cnt = array.get_dim_cnt();

	for (int j=0; j<cnt; j++)
	{
		size_of_dimension[j] = array.get_dim(j);
	}

 

Performing operations on groups of elements of an XPE array

 

creating a new array