示例#1
0
magmaFloatComplex magma_cdotc(
    magma_int_t n,
    const magmaFloatComplex *dx, magma_int_t incx,
    const magmaFloatComplex *dy, magma_int_t incy )
{
    return cublasCdotc( n, dx, incx, dy, incy );
}
//
// Overloaded function for dispatching to
// * CUBLAS backend, and
// * complex<float> value-type.
//
inline std::complex<float> dotc( const int n, const std::complex<float>* x,
        const int incx, const std::complex<float>* y, const int incy ) {
    return cublasCdotc( n, x, incx, y, incy );
}