23 int nrhs,
const mxArray *prhs[])
62 D(0,0) = 1; D(0,1) = 1;
63 D(1,0) = -1; D(1,1) = 2;
64 D(2,0) = 2; D(2,1) = 1;
70 X(0,0)=2, X(1,0)=2, X(2,0)=-3;
74 spams::lasso2<double>(X,D,alpha,2,lambda);
void print(const string &name) const
Print the matrix to std::cout.
void print(const string &name) const
print the sparse matrix
Contains sparse decomposition algorithms It requires the toolbox linalg.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])