Open
Description
I realized that if the _dot
function introduced in #21 is wrapped with real
, then pullback_function
works for complex arrays as well, whenever gradient
supports complex inputs for a given backend. But at least in the scalar case, the real dot product can be computed twice as efficiently as real(_dot(x, y))
.