gh-519: test array API compliance of legacy mode functions
Description
Add array API tests for legacy mode functions added in glass.algorithm. The functions added in other modules do not fully support the array API standard; therefore, those functions can be dealt with once we add full support.
Closes: #519
Checks
- [X] Is your code passing linting?
- [X] Is your code passing tests?
- [X] Have you added additional tests (if required)?
- [ ] Have you modified/extended the documentation (if required)?
- [ ] Have you added a one-liner changelog entry above (if required)?
The typing and rng issues need to be worked out ideally before merging this. Hence, marking as draft.
Thanks @Saransh-cpp! What is the issue with array.reshape() here?
Thanks, @ntessore! array.reshape() exists in JAX and NumPy but it is not a part of the array API (array_api_strict tests fail).
This should finally be ready now, @paddyroddy @ntessore!
Merging this so that it does not go stale again!