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_coefare the leading nonzero entries of \(L[:, 0]\). \(L\) is of size \(n \times n\); iflen(lhs_coef) < n, the remaining coefficients are assumed to be zero. Iflen(lhs_coef) > n, then only the firstncoefficients are used.rhs_coef (
Array) – The nonzero coefficients of a lower-triangular Toeplitz matrix \(R\), under the same conventions aslhs_coef.n (
int|None) – Optional, the size of the matrices \(L\) and \(R\) (seecoefabove). IfNone, 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)\).