glass icon indicating copy to clipboard operation
glass copied to clipboard

Change the following functions to their array-api-strict/array-api-extra counterparts

Open paddyroddy opened this issue 6 months ago • 3 comments

Add your issue here

There are a few functions that GLASS uses that currently to do not exist in the Array API specification nor in https://github.com/data-apis/array-api-extra. This is a meta issue to track the required functions.

paddyroddy avatar Oct 09 '25 10:10 paddyroddy

For the linalg functions, I have just found this page which shows that some linalg methods are implemented in the standard.

The recommendation is to check that the array lib has linalg as an attribute via

if hasattr(self.xp, 'linalg'):
    ...

Is this what we want to do or should we just assume .linalg is present? After all that is what we do for the other aspects of the standard.

connoraird avatar Oct 14 '25 08:10 connoraird

I feel like assuming .linalg is probably fine?

paddyroddy avatar Oct 14 '25 08:10 paddyroddy

I feel like assuming .linalg is probably fine?

I agree

connoraird avatar Oct 14 '25 09:10 connoraird