Mercurial > repos > public > sbplib
comparison semiDefIneq.m @ 167:15baeb35f74e feature/grids
Merge in changes from default.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 23 Feb 2016 13:25:43 +0100 |
parents | 0a881a3dc9a9 |
children | eaf557023fbe |
comparison
equal
deleted
inserted
replaced
166:7cb97c1988d9 | 167:15baeb35f74e |
---|---|
1 function ineq = semiDefIneq(A) | |
2 [m, sub] = minors(A); | |
3 | |
4 ineqsys = true; | |
5 for i = 1:length(m) | |
6 ineqsys = ineqsys & m(i) >= 0; | |
7 end | |
8 | |
9 ineq = simplify(ineqsys); | |
10 | |
11 str = toString(ineq); | |
12 fprintf('%s\n',strjoin(strsplit(str,' & '), '\n')); | |
13 end |