def option_to_cblas(x):
    """As above, but for CBLAS data-types"""
    return {
        'layout': "CBLAS_ORDER",
        'a_transpose': "CBLAS_TRANSPOSE",
        'b_transpose': "CBLAS_TRANSPOSE",
        'ab_transpose': "CBLAS_TRANSPOSE",
        'side': "CBLAS_SIDE",
        'triangle': "CBLAS_UPLO",
        'diagonal': "CBLAS_DIAG",
    }[x]