Checks consistency and correctness of user's data as well as initializes certain data structures required to perform the Trigonometric Transform.
void d_commit_trig_transform(double f[], DFTI_DESCRIPTOR_HANDLE *handle, int ipar[], double dpar[], int *stat);
void s_commit_trig_transform(float f[], DFTI_DESCRIPTOR_HANDLE *handle, int ipar[], float spar[], int *stat);
The Fortran interfaces are specified in the mkl_trig_transforms.f90 include file and the C interfaces are specified in the mkl_trig_transforms.h include file.
f |
double for d_commit_trig_transform, float for s_commit_trig_transform, array of size n for staggered2 transforms and of size n+1 for all other transforms, where n is the size of the problem. Contains data vector to be transformed. Note that the following values should be 0.0 up to rounding errors:
Otherwise, the routine will produce a warning, and the result of the computations for sine transforms may be wrong. These restrictions meet the requirements of the Poisson Library, which the TT interface is primarily designed for. |
ipar |
int array of size 128. Contains integer data needed for Trigonometric Transform computations. |
dpar |
double array of size 5n/2+2. Contains double-precision data needed for Trigonometric Transform computations. The routine initializes most elements of this array. |
spar |
float array of size 5n/2+2. Contains single-precision data needed for Trigonometric Transform computations. The routine initializes most elements of this array. |
handle |
DFTI_DESCRIPTOR_HANDLE*. The data structure used by Intel MKL FFT interface (for details, refer to FFT Functions). |
ipar |
Contains integer data needed for Trigonometric Transform computations. On output, ipar[6] is updated with the stat value. |
dpar |
Contains double-precision data needed for Trigonometric Transform computations. On output, the entire array is initialized. |
spar |
Contains single-precision data needed for Trigonometric Transform computations. On output, the entire array is initialized. |
stat |
int*. Contains the routine completion status, which is also written to ipar[6]. |
The routine ?_commit_trig_transform checks consistency and correctness of the parameters to be passed to the transform routines ?_forward_trig_transform and/or ?_backward_trig_transform. The routine also initializes the following data structures: handle, dpar in case of d_commit_trig_transform, and spar in case of s_commit_trig_transform. The ?_commit_trig_transform routine initializes only those elements of dpar or spar that depend upon the type of transform, defined in the ?_init_trig_transform routine and passed to ?_commit_trig_transform with the ipar array. The size of the problem n, which determines sizes of the array parameters, is also passed to the routine with the ipar array and defined in the previously called ?_init_trig_transform routine. For a detailed description of arrays ipar, dpar and spar, refer to Common Parameters. The routine performs only a basic check for correctness and consistency of the parameters. If you are going to modify parameters of TT routines, see Caveat on Parameter Modifications. Unlike ?_init_trig_transform, the ?_commit_trig_transform routine is mandatory, and you cannot skip calling it in your code.
Although positive values of stat usually indicate minor problems with the input data and Trigonometric Transform computations can be continued, you are highly recommended to investigate the problem first and achieve stat=0.
Copyright © 1994 - 2011, Intel Corporation. All rights reserved.