(ctx, a, b)
return r
Solve a * x = b  where a and b are matrices.
Solve a * x = b  where a and b are matrices.
Solve a * x = b where a and b are matrices .
def lu_solve_mat(ctx, a, b):
        """Solve a * x = b  where a and b are matrices."""
        r = ctx.matrix(a.rows, b.cols)
        for i in range(b.cols):
            c = ctx.lu_solve(a, b.column(i))
            for j in range(len(c)):
                r[j, i] = c[j]
        return r
def lu_solve_mat ( ctx , a , b ) : r = ctx . matrix ( a . rows , b . cols ) for i in range ( b . cols ) : c = ctx . lu_solve ( a , b . column ( i ) ) for j in range ( len ( c ) ) : r [ j , i ] = c [ j ] return r