code: func (impl *Standard) Idamax(n int, x []float64, incX int) (retVal int) {
  	// declared at cublasgen.h:390:17 enum CUBLAS_STATUS { ... } cublasIdamax ...
  	if impl.e != nil {
  		return
  	}
  
  	if n < 0 {
  		panic("blas: n < 0")
  	}
  	if incX == 0 {
  		panic("blas: zero x index increment")
  	}
  	if n == 0 || incX < 0 {
  		return -1
  	}
  	if incX > 0 && (n-1)*incX >= len(x) {
  		panic("blas: x index out of range")
  	}
  	if n == 0 {
  		return
  	}
  	var ret C.int
  	impl.e = status(C.cublasIdamax(C.cublasHandle_t(impl.h), C.int(n), (*C.double)(&x[0]), C.int(incX), &ret))
  	return int(ret)
  }
docs: // Idamax returns the index of an element of x with the largest absolute value.
  // If there are multiple such indices the earliest is returned.
  // Idamax returns -1 if n == 0.