Do more. Code less. Free software for GPU computing.
<scroll to top>

Tile a Matrix

Matrix manipulation

Device pointer interface: Replicating the input matrix

Replicate an array along specified dimensions.
Parameters:
[out]d_outReplicated array
[in]ndimsNumber of dimensions in array dims
[in]dimsArray of dimensions
[in]d_inOriginal array.
[in]nrepsNumber of replications in array reps
[in]repsArray indicating extent of replication in each dimension, e.g. [1 2] replicates only in the second dimension.
[in]batchNumber 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.

Function Documentation

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines