human
I wrote the below code

    numba_xgesv = _LAPACK().numba_xgesv(a.dtype)
    kind = ord(_blas_kinds[a.dtype])
    def _numba_linalg_solve_impl(a, b):
        n = a.shape[(-1)]
        if (b.ndim == 1):
            nrhs = 1
        else:
            nrhs = b.shape[(-1)]
        F_INT_nptype = np.int32
        ipiv = np.empty(n, dtype=F_INT_nptype)
        r = numba_xgesv(kind, n, nrhs, a.ctypes, n, ipiv.ctypes, b.ctypes, n)
        return r
    return _numba_linalg_solve_impl

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

@generated_jit(nopython=True, cache=True)
def _numba_linalg_solve(a, b):