consistent.m
来自「GloptiPoly 3: moments, optimization and 」· M 代码 · 共 25 行
M
25 行
function f = consistent(x)% @MOM/CONSISTENT - Internal use only % Check whether a scalar moment object is consistent with the% defined measures and variables - used in MDEF% D. Henrion, 23 March 2006p = x(1).split;m = x(1).meas;n = length(p);f = true(1,n);for k = 1:length(p) % Each polynomial should correspond to one measure only mp = indmeas(p(k)); if (length(mp) > 1) | ((mp ~= 0) & (mp ~= m(k))) f(k) = false; endendf = all(f);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?