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

Trigonometry Testing #35

Closed AzeezIsh closed 5 months ago

AzeezIsh commented 5 months ago

This PR introduces a suite of unit tests for trigonometric_functions.py located within the within the mathematical functions directory. It also added float types and boolean types to utility functions. The primary functions in this file are based around all inverse and standard 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.