Skip to content

elementwise: NDArray type hint #385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: gv/final/elementwise
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions deeptrack/elementwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,12 +1242,12 @@ def _floor_dispatch(x):

Parameters
----------
x: np.ndarray or torch.Tensor
x: NDArray or torch.Tensor
The input to transform.

Returns
-------
np.ndarray or torch.Tensor
NDArray or torch.Tensor
The result after applying floor elementwise.

"""
Expand Down Expand Up @@ -1351,12 +1351,12 @@ def _ceil_dispatch(x):

Parameters
----------
x: np.ndarray or torch.Tensor
x: NDArray or torch.Tensor
The input to transform.

Returns
-------
np.ndarray or torch.Tensor
NDArray or torch.Tensor
The result after applying ceil elementwise.

"""
Expand Down Expand Up @@ -1797,11 +1797,11 @@ def _imag_dispatch(x):

Parameters
----------
x: np.ndarray or torch.Tensor
x: NDArray or torch.Tensor

Returns
-------
np.ndarray or torch.Tensor
NDArray or torch.Tensor
Imaginary part of the input, or zero if real.

"""
Expand Down Expand Up @@ -2138,12 +2138,12 @@ def _sign_dispatch(x):

Parameters
----------
x : np.ndarray or torch.Tensor
x : NDArray or torch.Tensor
The input array or tensor whose elementwise signs will be computed.

Returns
-------
np.ndarray or torch.Tensor
NDArray or torch.Tensor
The elementwise sign values of the input.

"""
Expand Down