opt_einsum.parser.get_symbol

opt_einsum.parser.get_symbol(i)[source]

Get the symbol corresponding to int i - runs through the usual 52 letters before resorting to unicode characters, starting at chr(192).

Examples

>>> get_symbol(2)
'c'
>>> oe.get_symbol(200)
'Ŕ'
>>> oe.get_symbol(20000)
'京'