jax_privacy.matrix_factorization.toeplitz.materialize_lower_triangular#
- jax_privacy.matrix_factorization.toeplitz.materialize_lower_triangular(coef, n=None)[source]#
Creates a lower-triangular Toeplitz matrix.
Example: If coef = [a, b, c] and n = 6, then this method returns:
[a 0 0 0 0 0] [b a 0 0 0 0] [c b a 0 0 0] [0 c b a 0 0] [0 0 c b a 0] [0 0 0 c b a]
- Parameters:
coef (
Array) – The nonzero coefficients of a lower-triangular Toeplitz matrix \(C\), that is,coefare the leading nonzero entries of \(C[:, 0]\). \(C\) is of size \(n \times n\); iflen(coef) < n, the remaining coefficients are assumed to be zero. Iflen(coef) > n, then only the firstncoefficients are used.n (
int|None) – Optional, the size of the matrix \(C\) (seecoefabove). IfNone, the size of the matrix is equal to the number of coefficients.
- Return type:
Array- Returns:
The lower-triangular Toeplitz matrix.