Skip to content
Snippets Groups Projects
Commit 54c5991d authored by Marco van Oort's avatar Marco van Oort
Browse files

Accept eps=0 in mondriaanOpt Matlab functions

parent 15eea577
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
Imbalance = ExtractDouble (prhs[1]);
Volume = (int)ExtractDouble (prhs[2]);
if (Imbalance <= 0.0 || Imbalance >= 1.0) mexErrMsgTxt ("The imbalance should lie between 0 and 1!");
if (Imbalance < 0.0 || Imbalance > 1.0) mexErrMsgTxt ("The imbalance should lie between 0 and 1!");
/* Convert matrix to a Mondriaan friendly format. */
MondriaanMatrix = ConvertMatlabToMondriaan(prhs[0]);
......
......@@ -29,7 +29,7 @@ function [I, s] = mondriaanOpt(A, Imbalance, Volume)
disp 'Error: the three arguments to mondriaanOpt function are mandatory!';
return;
end
if (Imbalance <= 0)
if (Imbalance < 0)
disp('Invalid value for Imbalance');
return;
end
......
......@@ -19,7 +19,7 @@ function mondriaanOptPlot(A, Imbalance, Volume)
disp 'Error: the three arguments to mondriaanOptPlot function are mandatory!';
return;
end
if (Imbalance <= 0)
if (Imbalance < 0)
disp('Invalid value for Imbalance');
return;
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment