std::size_t syten::Cuda::max_element_idx | ( | CudaConstSpan< std::complex< float > > | inp | ) |
Returns the 0-based index of the absolute-value maximal element of the range.
References get_handle(), handle_error(), host_device(), syten::Cuda::CudaStream::sync_destroy(), SYTEN_ASSERT_MSG, SYTEN_BLAS_THREADS_SETUP, and SYTEN_BLAS_THREADS_TEARDOWN.