DRMS_Array_t* drms_array_permute ( DRMS_Array_t src,
int *  perm,
int *  status 
)

Rearranges the array elements in arr->data such that the dimensions are ordered according to the permutation given in the vector perm (dimension arr->naxis), using the function ndim_perm. This is a generalization of the matrix transpose operator to n dimensions. The permuted data are returned in a newly created array struct, created wih drms_array_create.

Parameters:
src The DRMS array struct whose data will be transposed.
perm Vector specifying the order in which data should be transposed.
status DRMS status (see drms_statuscodes.h). 0 if successful, non-0 otherwise.
Returns:
The created DRMS array struct.

Definition at line 137 of file drms_array.c.


Generated on Mon Mar 26 07:00:49 2018 for JSOC_Documentation by  doxygen 1.5.7.1