Sig length functions#

sig_length#

uint64_t sig_length(uint64_t dimension, uint64_t degree) noexcept#

Returns the length of a truncated signature.

Parameters:
  • dimension – Dimension of the underlying path.

  • degree – Truncation degree of the signature.

Returns:

Length of a truncated signature. A returned value of 0 indicates integer overflow.

log_sig_length#

uint64_t log_sig_length(uint64_t dimension, uint64_t degree) noexcept#

Returns the length of a truncated log signature.

Parameters:
  • dimension – Dimension of the underlying path.

  • degree – Truncation degree of the log signature.

Returns:

Length of a truncated log signature. A returned value of 0 indicates integer overflow or invalid parameters (dimension == 0 or degree == 0).


Citation#

If you found this library useful in your research, please consider citing the paper:

@article{shmelev2025pysiglib,
  title={pySigLib-Fast Signature-Based Computations on CPU and GPU},
  author={Shmelev, Daniil and Salvi, Cristopher},
  journal={arXiv preprint arXiv:2509.10613},
  year={2025}
}