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

Matrix operation tests #49

Closed sakchal closed 6 months ago

sakchal commented 7 months ago

This PR introduces a suite of unit tests for the matrix_operation.py located within the within the linear_algebra directory. The primary function in this file facilitate the basic matrix operations that can be carried out including finding the determinant, the norm, the pseudoinverse, and the rank of a matrix.

Shape: Ensures that the functions can handle correctly instantiated shapes and can properly handle non-square shapes. Dim: Ensures that functions which can't handle batch inputs can properly handle these types of inputs Dtype: Ensures that any dtype outside of float/complex types will be properly handled. Data Type Accuracy: Ensures that the resulting output data types for each function are correct Error Handling: Assesses the function's error handling