opBernoulli Bernoulli-ensemble operator.
opBernoulli(M,N) creates an M-by-N Bernoulli ensemble, a matrix
with iid +1/-1 entries.
opBernoulli(M) creates a square M-by-M Bernoulli ensemble.
opBernoulli(M,N,MODE) is the same as above, except that the
parameter MODE controls the type of ensemble that is generated.
The default is MODE=0 unless the overall memory requred exceeds 50
MODE = 0 (default): generates an explicit unnormalized matrix with
random +1/-1 entries. The overall storage is O(M*N).
MODE = 1: generates columns of the unnormalized matrix as the
operator is applied. This allows for much larger ensembles since
the matrix is implicit. The overall storage is O(M).
MODE = 2: generates a scaled explicit matrix with unit-norm
MODE = 3: same as MODE=2, but the matrix is implicit (see MODE=1).
Available operator properties:
.mode gives the mode used to create the operator.