https://stackoverflow.com/questions/76155396/sparse-matrix-operations-with-matrices-valued-in-a-custom-class?noredirect=1#comment134303244_76155396 Can anyone help me with my question? I'm open to switching to a new programming language.
@JadeMasterMath GraphBLAS seems to be targeted at something like this. There are two Python wrappers, python-graphblas and pygraphblas. People in my lab used to use & contribute to pygraphblas for a bit. But as of now, I think python-graphblas is the better maintained library and it has support for accelerated matrix computations custom data types and (semiring) operations: https://python-graphblas.readthedocs.io/en/stable/user_guide/types.html#user-defined-types and https://python-graphblas.readthedocs.io/en/stable/user_guide/udf.html#user-defined-functions
@JadeMasterMath asked one of the guys who were working on GraphBLAS stuff: he says you’ll need python-graphblas for custom semirings, but he haven’t tried (built-in stuff covered most of our use-cases, I think)