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 factorization and decomposition tests #50

Closed sakchal closed 4 months ago

sakchal commented 5 months ago

This PR introduces a suite of unit tests for the matrix_factorization_and_decomposition.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 cholesky decomposition , cholesky inplace decomposition, lu decompsition, lu inplace decomposition, qr decomposition, qr inplace decomposition, svd decomposition, and svd in place decomposition.

Shape: Ensures that the functions can handle correctly instantiated 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