Skip to content

[Operator Development] Implement acosh operator with tests and benchmarks#1527

Open
minalkharat-cmd wants to merge 3 commits intoflagos-ai:masterfrom
minalkharat-cmd:feature/complete-acosh-implementation
Open

[Operator Development] Implement acosh operator with tests and benchmarks#1527
minalkharat-cmd wants to merge 3 commits intoflagos-ai:masterfrom
minalkharat-cmd:feature/complete-acosh-implementation

Conversation

@minalkharat-cmd
Copy link

Summary

Implements the acosh (inverse hyperbolic cosine) operator from issue #884.

Changes

  • ✅ Created acosh.py with clean pointwise_dynamic implementation
  • ✅ Implemented in-place acosh_() function
  • ✅ Exported acosh and acosh_ in init.py
  • ✅ Added accuracy tests for acosh and acosh_ with proper NaN handling
  • ✅ Added edge case tests for boundary values
  • ✅ Added performance benchmarks for both versions

Testing

All functionality implemented with proper domain handling (x >= 1). Tests include equal_nan=True for out-of-domain value handling.

Closes

#884

- Add missing in-place version acos_() function
- Improve documentation with detailed docstrings
- Add usage examples in docstrings
- Maintain compatibility with existing acos() function

Part of completing issue flagos-ai#883

Signed-off-by: minalkharat-cmd <minalkharat@gmail.com>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tengqm
Copy link
Contributor

tengqm commented Feb 10, 2026

@minalkharat-cmd Please sign the CLA in order for your PR to be reviewed. Thanks.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants