Mercurial > repos > public > sbplib
comparison semiDefIneq.m @ 820:501750fbbfdb
Merge with feature/grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Sep 2018 14:40:58 +0200 |
parents | eaf557023fbe |
children |
comparison
equal
deleted
inserted
replaced
819:fdf0ef9150f4 | 820:501750fbbfdb |
---|---|
1 function ineq = semiDefIneq(A) | 1 function ineq = semiDefIneq(A, verbose) |
2 [m, sub] = minors(A); | 2 default_arg('verbose', true); |
3 [m, sub] = minors(A, verbose); | |
3 | 4 |
4 ineqsys = true; | 5 ineqsys = true; |
5 for i = 1:length(m) | 6 for i = 1:length(m) |
6 ineqsys = ineqsys & m(i) >= 0; | 7 ineqsys = ineqsys & m(i) >= 0; |
7 end | 8 end |