cvxr / CVX

A MATLAB system for disciplined convex programming
Other
226 stars 83 forks source link

MATLAB R2016a Warning - `nargchk` Will Be Removed #1

Open RoyiAvital opened 7 years ago

RoyiAvital commented 7 years ago

Hello,

Is CVX still being developed?

Anyhow, CVX uses nargchk which, according to Mathworks will be removed soon and yields warning in MATLAB R2016a (Probably MATLAB R2016b as well).

This implies CVX won't run on next versions of MATLAB.

Could you please fix it? Mathworks suggest using narginchk.

CVX is amazing, I hope it is still under active development.

Thank You.

RoyiAvital commented 4 years ago

@mcg1969 , I found something small in the documentation.

In https://github.com/cvxr/CVX/blame/a7b46e7840c3ccf3f35df374d2ff3da4eaafc3cd/doc/funcref.rst#L254 You write:

If $x$ is a vector or array, the function is applied on an elementwise basis.

I assume that in order to return a scalar it also sums the result, right? I think it is better be mentioned.

Edit It seems indeed it works on each component and the output is a vector. So all is OK. My mistake.