How can I improve the runtime of this linear system solve?

Might it be possible to call the C function directly bypassing the cython function?