type for summation (optional template parameter)
first n-dimensional tensor
second n-dimensional tensor BLAS: CDOTU, ZDOTU
dot product xᐪ × y
CDOTC, ZDOTC
import mir.ndslice.allocation: slice; auto x = slice!cdouble(2); auto y = slice!cdouble(2); x[] = [0 + 1i, 2 + 3i]; y[] = [4 + 5i, 6 + 7i]; version(LDC) // DMD Internal error: backend/cgxmm.c 628 assert(dotc(x, y) == (0 + -1i) * (4 + 5i) + (2 + -3i) * (6 + 7i));
Forms the dot product of two complex vectors. Uses unrolled loops for strides equal to one.