cr.sparse.lop.sparse_binary_dict¶
- cr.sparse.lop.sparse_binary_dict(key, m, n=None, d=None, normalize_atoms=True, dense=False, axis=0)[source]¶
An operator which represents a sparse binary sensing matrix
- Parameters
key – a PRNG key used as the random key.
M (int) – Number of rows of the sensing matrix
N (int) – Number of columns of the sensing matrix
d (int) – Number of 1s in each column
normalize_atoms (bool) – Whether the columns of sensing matrix are normalized (default True)
dense (bool) – Whether to return a dense or a sparse matrix
axis (int) – For multi-dimensional array input, the axis along which the linear operator will be applied
- Returns
A linear operator wrapping the sensing matrix
- Return type