Skip to content

logsigdim_words

from tensorsig.algebra.lyndon import logsigdim_words

Dimension of the truncated log-signature in the Lyndon "words" basis.

Source code in src/tensorsig/algebra/lyndon_words.py
def logsigdim_words(width: int, depth: int) -> int:
    """Dimension of the truncated log-signature in the Lyndon \"words\" basis."""
    return len(lyndon_words(width, depth))