def apply_matrix(matrix, triplet):
    values = numpy.matrix(triplet)
    return numpy.dot(matrix, values.T).T.tolist()[0]
Apply a matrix on a value triplet
dataset/ETHPy150Open mikrosimage/ColorPipe-tools/utils/colors_helper.py/apply_matrix