Modify the dimensions of an array without changing the order of its elements. More...
| Functions | |
| array | moddims (const array &in, const dim4 &dims) | 
| C++ Interface to modify the dimensions of an input array to a specified shape. | |
| array | moddims (const array &in, const dim_t d0, const dim_t d1=1, const dim_t d2=1, const dim_t d3=1) | 
| C++ Interface to modify the dimensions of an input array to a specified shape. | |
| array | moddims (const array &in, const unsigned ndims, const dim_t *const dims) | 
| C++ Interface to modify the dimensions of an input array to a specified shape. | |
| af_err | af_moddims (af_array *out, const af_array in, const unsigned ndims, const dim_t *const dims) | 
| C Interface to modify the dimensions of an input array to a specified shape. | |
Modify the dimensions of an array without changing the order of its elements.
This function only modifies array metadata and requires no computation. It is a NOOP.
Examples:
| af_err af_moddims | ( | af_array * | out, | 
| const af_array | in, | ||
| const unsigned | ndims, | ||
| const dim_t *const | dims ) | 
C Interface to modify the dimensions of an input array to a specified shape.
| [out] | out | modded output | 
| [in] | in | input array | 
| [in] | ndims | number of dimensions | 
| [in] | dims | new dimension sizes | 
C++ Interface to modify the dimensions of an input array to a specified shape.
| [in] | in | input array | 
| [in] | dims | new dimension sizes | 
| array moddims | ( | const array & | in, | 
| const dim_t | d0, | ||
| const dim_t | d1 = 1, | ||
| const dim_t | d2 = 1, | ||
| const dim_t | d3 = 1 ) | 
C++ Interface to modify the dimensions of an input array to a specified shape.
| [in] | in | input array | 
| [in] | d0 | new size of the first dimension | 
| [in] | d1 | new size of the second dimension (optional) | 
| [in] | d2 | new size of the third dimension (optional) | 
| [in] | d3 | new size of the fourth dimension (optional) |