Open cviel opened 11 months ago
Indeed, here are some quick answers:
x.getitem(int32(0))
from The operator [index] for a Codac object should be replaced with .getitem(int32(index)) [...] indices of Codac objects start at 0...
on https://www.codac.io/install/04-start-matlab-project.html . We plan to try to simplify this notation to something like x.i(0)
, if there is no side effect.
y = IntervalVector(py.list({Interval(3,4),Interval(4,6)}))
from Python lists of objects should be converted to MATLAB cell arrays. [...] when a Codac function needs a py.list or Vector parameter, the corresponding MATLAB cell array should be given as py.list(…)
I do not know yet if there would be a simple way to simplify this.
Interval().EMPTY_SET
.IntervalVector(py.list({a,a}))
, see 2nd point.x.ub()
and x.lb()
could be used instead? Maybe we should make max(x)
and min(x)
return this, I don't think it is currently done for any programming language.
I have tested the package with Matlab and there are several problems that prevent it from being used :
I can't test the validity of the function "Function" since IntervalVector returns a wrong result, so to be tested. Good luck to fix it, and thank you for your work !