Skip to content

Add more element-wise math functions for floats#1507

Merged
akern40 merged 1 commit into
rust-ndarray:masterfrom
Waterdragen:more-float-fn
May 22, 2025
Merged

Add more element-wise math functions for floats#1507
akern40 merged 1 commit into
rust-ndarray:masterfrom
Waterdragen:more-float-fn

Conversation

@Waterdragen

Copy link
Copy Markdown
Contributor

Extends the functionality of #1042

Exponential and Logarithmic

  • exp_m1
  • ln_1p

Trig functions

  • asin
  • acos
  • atan
  • sinh
  • cosh
  • tanh
  • asinh
  • acosh
  • atanh

Other

  • hypot

@akern40

akern40 commented May 22, 2025

Copy link
Copy Markdown
Collaborator

@nilgoyette thoughts on this addition, API-wise? I think I'm in favor

@nilgoyette

Copy link
Copy Markdown
Collaborator

@akern40 I understand why the "old" maintainers were cautious about adding too much methods, but the diff shows that we currently support sin/cos/tan, but not asin/acos/atan (for example). I don't think this make much sense. At that point, we should add those methods.

@akern40 akern40 merged commit 60a513b into rust-ndarray:master May 22, 2025
15 checks passed
@bluss

bluss commented May 22, 2025

Copy link
Copy Markdown
Member

Praise the "new" maintainers! 😉 🥳

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.

4 participants