Device pointer interface: Replicating the input matrix |
Replicate an array along specified dimensions.- Parameters:
-
| [out] | d_out | Replicated array |
| [in] | ndims | Number of dimensions in array dims |
| [in] | dims | Array of dimensions |
| [in] | d_in | Original array. |
| [in] | nreps | Number of replications in array reps |
| [in] | reps | Array indicating extent of replication in each dimension, e.g. [1 2] replicates only in the second dimension. |
| [in] | batch | Number of tiles in batch. |
|
| afError | af_tile_S (float *d_out, unsigned ndims, const unsigned *dims, const float *d_in, unsigned nreps, const unsigned *reps, unsigned batch) |
| | Single-precision array replication.
|
| afError | af_tile_D (double *d_out, unsigned ndims, const unsigned *dims, const double *d_in, unsigned nreps, const unsigned *reps, unsigned batch) |
| | Double-precision array replication.
|
| afError | af_tile_B (bool *d_out, unsigned ndims, const unsigned *dims, const bool *d_in, unsigned nreps, const unsigned *reps, unsigned batch) |
| | Boolean (8-bit) array replication.
|
| afError | af_tile_U (unsigned *d_out, unsigned ndims, const unsigned *dims, const unsigned *d_in, unsigned nreps, const unsigned *reps, unsigned batch) |
| | Unsigned integer array replication.
|
| afError | af_tile_I (int *d_out, unsigned ndims, const unsigned *dims, const int *d_in, unsigned nreps, const unsigned *reps, unsigned batch) |
| | Integer array replication.
|
| afError | af_tile_C (cuComplex *d_out, unsigned ndims, const unsigned *dims, const cuComplex *d_in, unsigned nreps, const unsigned *reps, unsigned batch) |
| | Complex single-precision array replication.
|
| afError | af_tile_Z (cuDoubleComplex *d_out, unsigned ndims, const unsigned *dims, const cuDoubleComplex *d_in, unsigned nreps, const unsigned *reps, unsigned batch) |
| | Complex double-precision array replication.
|