Scilab Function
Last update : 1/5/2008

cca_moreau - Generic Moreau envelope

Calling Sequence

[M] = cca_moreau(X,Y,S)
[M,p,P] = cca_moreau(X,Y,S)
[M,g,Conjpartial,Conj] = cca_moreau(Xr,Xc,f,Sr,Sc)

Parameters

Description

The moreau function is a wrapper for three different moreau envelope computations depending on the calling sequence. The first calling sequence [M] = cca_moreau(X,Y,S) uses me_llt function for the 1D me computation. The second calling sequence [M,p,P] = cca_moreau(X,Y,S) uses the me_direct function for the 1D me computation. The last calling sequence [M,g,Conjpartial,Conj] = cca_moreau(Xr,Xc,f,Sr,Sc) uses me_llt2d function for the 2D me computation. For a more detailed description see links below.

Examples

//Example 1. First Calling Sequence
X = (1:10)';S = X;
F=X.^2;
[M] = cca_moreau(X, F, S);

//Example 2. Second Calling Sequence
X = (1:10)';S = X;
F=X.^2;
[M,p,P] = cca_moreau(X,F,S);

//Example 3. Third Calling Sequence
Xr = [1 2.2 3]'; Sr = Xr;
Xc = [1 2 3]'; Sc = Xc;
F = [3 100 100;100 100 100;100 100 2 ];
[MY,g,Conjpartial,Conj] = cca_moreau(Xr, Xc, F, Sr, Sc);
  

See Also

me_llt,  me_direct,  me_llt2d,  

Author

Mike Trienis, University of British Columbia, BC, Canada