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

Test if all true

Reductions

Device pointer interface: Verify if any of the elements are non zero.

Parameters:
[out]h_dstScalar and on host.
[in]numelThe number of elements in the vector.
[in]d_srcThe input vector.

afError af_alltrue_vector_S (bool *h_dst, unsigned numel, const float *d_src)
 all along single precision vector
afError af_alltrue_vector_B (bool *h_dst, unsigned numel, const bool *d_src)
 all along boolean vector
afError af_alltrue_vector_I (bool *h_dst, unsigned numel, const int *d_src)
 all along 32-bit signed integer vector
afError af_alltrue_vector_U (bool *h_dst, unsigned numel, const unsigned *d_src)
 all along 32-bit unsigned integer vector
afError af_alltrue_vector_C (bool *h_dst, unsigned numel, const cuComplex *d_src)
 all along single precision, complex vector
afError af_alltrue_vector_D (bool *h_dst, unsigned numel, const double *d_src)
 all along double precision vector
afError af_alltrue_vector_Z (bool *h_dst, unsigned numel, const cuDoubleComplex *d_src)
 all along double precision, complex vector
afError af_anytrue_vector_S (bool *h_dst, unsigned numel, const float *d_src)
 any along single precision vector
afError af_anytrue_vector_B (bool *h_dst, unsigned numel, const bool *d_src)
 any along boolean vector
afError af_anytrue_vector_I (bool *h_dst, unsigned numel, const int *d_src)
 any along 32-bit signed integer vector
afError af_anytrue_vector_U (bool *h_dst, unsigned numel, const unsigned *d_src)
 any along 32-bit unsigned integer vector
afError af_anytrue_vector_C (bool *h_dst, unsigned numel, const cuComplex *d_src)
 any along single precision, complex vector
afError af_anytrue_vector_D (bool *h_dst, unsigned numel, const double *d_src)
 any along double precision vector
afError af_anytrue_vector_Z (bool *h_dst, unsigned numel, const cuDoubleComplex *d_src)
 any along double precision, complex vector

Device pointer interface: Verify all along a dimension.

Parameters:
[out]d_dstA vector pointer on the device.
[in]ndimsThe number of dimensions in the input array.
[in]dimsThe size of each dimension in input array.
[in]d_srcThe input array.
[in]dimThe dimension along which to perform the operation.

afError af_alltrue_S (bool *d_dst, unsigned ndims, const unsigned *dims, const float *d_src, int dim)
 all along a dimension in single precision matrix
afError af_alltrue_B (bool *d_dst, unsigned ndims, const unsigned *dims, const bool *d_src, int dim)
 all along a dimension in boolean matrix
afError af_alltrue_I (bool *d_dst, unsigned ndims, const unsigned *dims, const int *d_src, int dim)
 all along a dimension in 32-bit signed integer matrix
afError af_alltrue_U (bool *d_dst, unsigned ndims, const unsigned *dims, const unsigned *d_src, int dim)
 all along a dimension in 32-bit unsigned integer matrix
afError af_alltrue_C (bool *d_dst, unsigned ndims, const unsigned *dims, const cuComplex *d_src, int dim)
 all along a dimension in single precision, complex matrix
afError af_alltrue_D (bool *d_dst, unsigned ndims, const unsigned *dims, const double *d_src, int dim)
 all along a dimension in double precision matrix
afError af_alltrue_Z (bool *d_dst, unsigned ndims, const unsigned *dims, const cuDoubleComplex *d_src, int dim)
 all along a dimension in double precision, complex matrix

Function Documentation

afError af_alltrue_vector_S ( bool *  h_dst,
unsigned  numel,
const float *  d_src 
)

all along single precision vector

afError af_alltrue_vector_B ( bool *  h_dst,
unsigned  numel,
const bool *  d_src 
)

all along boolean vector

afError af_alltrue_vector_I ( bool *  h_dst,
unsigned  numel,
const int *  d_src 
)

all along 32-bit signed integer vector

afError af_alltrue_vector_U ( bool *  h_dst,
unsigned  numel,
const unsigned *  d_src 
)

all along 32-bit unsigned integer vector

afError af_alltrue_vector_C ( bool *  h_dst,
unsigned  numel,
const cuComplex *  d_src 
)

all along single precision, complex vector

afError af_alltrue_vector_D ( bool *  h_dst,
unsigned  numel,
const double *  d_src 
)

all along double precision vector

afError af_alltrue_vector_Z ( bool *  h_dst,
unsigned  numel,
const cuDoubleComplex *  d_src 
)

all along double precision, complex vector

afError af_alltrue_S ( bool *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const float *  d_src,
int  dim 
)

all along a dimension in single precision matrix

afError af_alltrue_B ( bool *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const bool *  d_src,
int  dim 
)

all along a dimension in boolean matrix

afError af_alltrue_I ( bool *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const int *  d_src,
int  dim 
)

all along a dimension in 32-bit signed integer matrix

afError af_alltrue_U ( bool *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const unsigned *  d_src,
int  dim 
)

all along a dimension in 32-bit unsigned integer matrix

afError af_alltrue_C ( bool *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const cuComplex *  d_src,
int  dim 
)

all along a dimension in single precision, complex matrix

afError af_alltrue_D ( bool *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const double *  d_src,
int  dim 
)

all along a dimension in double precision matrix

afError af_alltrue_Z ( bool *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const cuDoubleComplex *  d_src,
int  dim 
)

all along a dimension in double precision, complex matrix

afError af_anytrue_vector_S ( bool *  h_dst,
unsigned  numel,
const float *  d_src 
)

any along single precision vector

afError af_anytrue_vector_B ( bool *  h_dst,
unsigned  numel,
const bool *  d_src 
)

any along boolean vector

afError af_anytrue_vector_I ( bool *  h_dst,
unsigned  numel,
const int *  d_src 
)

any along 32-bit signed integer vector

afError af_anytrue_vector_U ( bool *  h_dst,
unsigned  numel,
const unsigned *  d_src 
)

any along 32-bit unsigned integer vector

afError af_anytrue_vector_C ( bool *  h_dst,
unsigned  numel,
const cuComplex *  d_src 
)

any along single precision, complex vector

afError af_anytrue_vector_D ( bool *  h_dst,
unsigned  numel,
const double *  d_src 
)

any along double precision vector

afError af_anytrue_vector_Z ( bool *  h_dst,
unsigned  numel,
const cuDoubleComplex *  d_src 
)

any along double precision, complex vector

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines