-
3.39.23
|
Functor for the the SUPP projector. More...
Public Member Functions | |
function | supp (S, varargin) |
Public Member Functions inherited from matfaust::proj::proj_gen | |
function | subsref (self, S) |
Additional Inherited Members | |
Protected Attributes inherited from matfaust::proj::proj_gen | |
Property | constraint |
Functor for the the SUPP projector.
A, the image matrix, is such that nonzeros(A) == nonzeros(S)
Usage
supp(S): returns a SUPP projector (functor), S defines the support matrix (entries are 0 or 1) for which the nonzeros entries define the values to keep from the input matrix into the ouput matrix of the projector.
supp(S,'normalized', bool,'pos', bool): the optional parameters are set. By default both normalized and pos are false.
'normalized',true | normalizes the projection image according to its Frobenius norm. |
'normalized',false | (the default) no normalization. |
'pos',true | skips the negative values (replaced by zero) of the input matrix. |
'pos',false | (the default) negative values are not skipped. |
proj | the supp projector. |
Example
function matfaust::proj::supp::supp | ( | S | , |
varargin | |||
) |