Bernoulli
A Bernoulli matrix is a matrix whose entries are independent and uniformly
sampled from \(\{-1,1\}\). This is a special case of a three-valued matrix
with \(p=1.\).
C API
-
ElError
ElBernoulli_i(ElMatrix_i A, ElInt m, ElInt n)
-
ElError
ElBernoulli_s(ElMatrix_s A, ElInt m, ElInt n)
-
ElError
ElBernoulli_d(ElMatrix_d A, ElInt m, ElInt n)
-
ElError
ElBernoulli_c(ElMatrix_c A, ElInt m, ElInt n)
-
ElError
ElBernoulli_z(ElMatrix_z A, ElInt m, ElInt n)
-
ElError
ElBernoulliDist_i(ElDistMatrix_i A, ElInt m, ElInt n)
-
ElError
ElBernoulliDist_s(ElDistMatrix_s A, ElInt m, ElInt n)
-
ElError
ElBernoulliDist_d(ElDistMatrix_d A, ElInt m, ElInt n)
-
ElError
ElBernoulliDist_c(ElDistMatrix_c A, ElInt m, ElInt n)
-
ElError
ElBernoulliDist_z(ElDistMatrix_z A, ElInt m, ElInt n)
Python API
-
Bernoulli(A, m, n)