estimator.SDis.nonzero

static SDis.nonzero(secret_distribution, n)[source]

Return number of non-zero elements or None

Parameters:
  • secret_distribution – distribution of secret, see module level documentation for details
  • n – LWE dimension n > 0