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

unit tests for iotafunction #19

Closed sakchal closed 6 months ago

sakchal commented 6 months ago

This PR introduces a suite of unit tests for iota.py located within the within the create_array directory. The primary functions in this file facilitate the creation of an iota array, an array that is filled with sequential numbers starting from 0 according to the specified dimensions and tiling dimensions.

Correct Array Shape: Ensures that arrays are instantiated with the intended dimensions. Correct Array T-Shape: Ensures that the tiling shape is valid Data Type Accuracy: Validates that the resulting arrays strictly adhere to the specified data types Error Handling: Assesses the functions' error handling, specifically dealing with the shape of the array and the given tshape