Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log and Exponent Testing #33

Merged
merged 4 commits into from
Apr 12, 2024
Merged

Conversation

AzeezIsh
Copy link
Contributor

@AzeezIsh AzeezIsh commented Mar 19, 2024

The test suite validates mathematical operations for log and exponential functions within the mathematical functions directory. Tests are organized around several key functions: cube root (cbrt), error function (erf), complementary error function (erfc), exponentiation (exp), exponent minus one (expm1), factorial (fac), natural logarithm (log), base-10 logarithm (log10), natural logarithm of 1 plus input (log1p), base-2 logarithm (log2), power (pow), root, 2 raised to the power of input (pow2), reciprocal square root (rsqrt), square root (sqrt), gamma function (tgamma), and sigmoid. Each function has the following tests:

Functionality Across Shapes and Types: The library correctly handles arrays of varying dimensions—from scalars to four-dimensional arrays—across all supported data types in the dtype_map, including integers, floating-point numbers, and boolean types.

Error Handling for Unsupported Types: It robustly raises errors when attempting operations with unsupported data types, specifically complex numbers and 64-bit floats, ensuring the library's stability by preventing undefined behavior.

Precision: Each mathematical operation is verified to perform accurately across the supported input shapes and data types, with special attention to the handling of edge cases

@syurkevi syurkevi merged commit 30f88c0 into arrayfire:master Apr 12, 2024
0 of 3 checks passed
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.

2 participants