calcPartialDerivatives

Calculate partial derivatives of an slice.

Partial derivatives are calculated by convolving an slice with [-1, 1] kernel, horizontally and vertically.

void
calcPartialDerivatives
(
InputTensor
V = DeepElementType!InputTensor
)
(
InputTensor input
,
ref Slice!(Contiguous, [2], V*) fx
,
ref Slice!(Contiguous, [2], V*) fy
,
TaskPool pool = taskPool
)
if (
isFloatingPoint!V
)

Meta