Skip to content

Add commonly-used methods on tensors - #164

Open
marcelluethi wants to merge 4 commits into
dimwit-dev:mainfrom
marcelluethi:more_elementary_jax_methods
Open

Add commonly-used methods on tensors #164
marcelluethi wants to merge 4 commits into
dimwit-dev:mainfrom
marcelluethi:more_elementary_jax_methods

Conversation

@marcelluethi

Copy link
Copy Markdown
Contributor

DimWits wrapping of the basic tensor methods supported in jax is rather patchy and was introduced on a per need basis.
This PR proposes to add some more, frequently used tensor operations. Each of them is just a one-liner, wrapping the underlying jax function.

The methods added are:

  • sort
  • cumsum, cumprod
  • diff
  • floor, ceil, round
  • arcsin, arccos, arctan
  • isnan, isfinite, nanToNum
  • mod (with a % operator)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant