arrayfire / arrayfire-binary-python-wrapper

A python thin wrapper for ArrayFire library
https://arrayfire.com
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Hyperbolic Functions Testing #34

Closed AzeezIsh closed 4 months ago

AzeezIsh commented 5 months ago

This PR introduces a suite of unit tests for hyperbolic_functions.py located within the within the mathematical functions directory. The primary functions in this file are based around all inverse and standard hyperbolic trigonometry functions (tan/sin/cos).

Functionality Across Diverse Shapes and Types: Verification is done across all supported data types, including integers, unsigned integers, boolean, and different floating-point precisions, for arrays ranging from scalar to four-dimensional.

Error Handling for Unsupported Types: The tests confirm that using unsupported data types, specifically complex numbers and 64-bit floats, appropriately raises runtime errors, highlighting the library's error management capability.