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

add unit tests for blas operations #26

Closed sakchal closed 5 months ago

sakchal commented 5 months ago

This PR introduces a suite of unit tests for the blas_operations.py located within the within the linear algebra directory. The primary functions in this array include operations such as dot products and matrix multiplication.

Tests Include: Shape: Ensures that when a dot product or matrix multiplication has taken place, an array with the correct shape is outputted.

Dtype: Check if the dtype is consistent across the inputs and the outputs, and that the operations only take place with the correct dtype.

Dimension: Ensures that these operations can take place among arrays with various dimensions - 1D, 2D, 3D, 4D.