jax_privacy.matrix_factorization.toeplitz.multiply

Contents

jax_privacy.matrix_factorization.toeplitz.multiply#

jax_privacy.matrix_factorization.toeplitz.multiply(lhs_coef, rhs_coef, n=None)[source]#

Computes the matrix product of two lower-triangular Toeplitz matrices.

Parameters:
  • lhs_coef (Array) – The nonzero coefficients of a lower-triangular Toeplitz matrix \(L\), that is, lhs_coef are the leading nonzero entries of \(L[:, 0]\). \(L\) is of size \(n \times n\); if len(lhs_coef) < n, the remaining coefficients are assumed to be zero. If len(lhs_coef) > n, then only the first n coefficients are used.

  • rhs_coef (Array) – The nonzero coefficients of a lower-triangular Toeplitz matrix \(R\), under the same conventions as lhs_coef.

  • n (int | None) – Optional, the size of the matrices \(L\) and \(R\) (see coef above). If None, the size of the matrices is equal to the number of coefficients.

Return type:

Array

Returns:

The coefficients of the lower-triangular Toeplitz matrix \(LR\) where \(L = \text{materialize\_lower\_triangular}(\text{lhs\_coef}, n)\) and \(R = \text{materialize\_lower\_triangular}(\text{rhs\_coef}, n)\).