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

Random tests #24

Closed sakchal closed 5 months ago

sakchal commented 6 months ago

This PR introduces a suite of unit tests for the random_number_generation.py located within the within the create_array directory. The primary functions in this file facilitate the creation of random AFArray objects allowing for the use of various random engines.

Shape: Ensures that a random AFArray with the correct shape is produced. Random Engine: Ensures that the AFArray is created with the correct random engine and that the methods can properly handle invalid engines passed in.

roaffix commented 6 months ago

I broke PR with auto-rebase on github. Sorry, my bad. Will fix by myself