Commit 7583242
Improved docstrings for Elemwise functions
This PR improves docstrings for Elemwise functions by:
1. Modifying scalar_elemwise to no longer append the generic Elemwise docstring
2. Enhancing docstrings for specific mathematical functions (exp, log, eq) with:
- Better formatted NumPy-style documentation
- Clear descriptions of functionality
- Practical usage examples
- Additional notes on potential pitfalls
This fixes issue #292 which noted that current Elemwise docstrings are
not very helpful due to excessive generic boilerplate.
🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>1 parent 1a220e5 commit 7583242
2 files changed
+203
-124
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
| 850 | + | |
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
| |||
1671 | 1671 | | |
1672 | 1672 | | |
1673 | 1673 | | |
| 1674 | + | |
| 1675 | + | |
1674 | 1676 | | |
1675 | | - | |
| 1677 | + | |
1676 | 1678 | | |
1677 | 1679 | | |
1678 | 1680 | | |
| |||
0 commit comments