(points, simplex)
return np.dot(simplex, points)
Transform the points `xi` from the reference simplex onto `simplex`.
Transform the points `xi` from the reference simplex onto `simplex`.
Transform the points xi from the reference simplex onto simplex .
def transform(points, simplex):
    """Transform the points `xi` from the reference simplex onto `simplex`."""
    # For n == 2:
    # x = (
    #     + outer(triangle[0].T, 1.0 - xi[0] - xi[1])
    #     + outer(triangle[1].T, xi[0])
    #     + outer(triangle[2].T, xi[1])
    #     )
    return np.dot(simplex, points)
def transform ( points , simplex ) : # For n == 2: # x = ( #     + outer(triangle[0].T, 1.0 - xi[0] - xi[1]) #     + outer(triangle[1].T, xi[0]) #     + outer(triangle[2].T, xi[1]) #     ) return np . dot ( simplex , points )