(bary, degree)
return np.linalg.lstsq(A, exact_vals, rcond=None)
Computes weights from points for a given scheme. Useful for cross-checking scheme
    integrity.
Computes weights from points for a given scheme. Useful for cross-checking scheme
    integrity.
Computes weights from points for a given scheme . Useful for cross - checking scheme integrity .
def triangle_compute_weights(bary, degree):
    """Computes weights from points for a given scheme. Useful for cross-checking scheme
    integrity.
    """
    out = orthopy.triangle.tree(bary, degree, "normal")
    A = np.vstack(out)
    exact_vals = np.zeros(len(A))
    exact_vals[0] = np.sqrt(2) / 2
    return np.linalg.lstsq(A, exact_vals, rcond=None)
def triangle_compute_weights ( bary , degree ) : out = orthopy . triangle . tree ( bary , degree , "normal" ) A = np . vstack ( out ) exact_vals = np . zeros ( len ( A ) ) exact_vals [ 0 ] = np . sqrt ( 2 ) / 2 return np . linalg . lstsq ( A , exact_vals , rcond = None )