mygrad.sinc#

mygrad.sinc(a: ArrayLike, *, constant: bool | None = None) Tensor[source]#

f(a) -> sin(a) / a

Parameters:
aArrayLike
constantOptional[bool]

If True, this tensor is treated as a constant, and thus does not facilitate back propagation (i.e. constant.grad will always return None).

Defaults to False for float-type data. Defaults to True for integer-type data.

Integer-type tensors must be constant.

Returns:
mygrad.Tensor