Macro affinitree::poly

source ·
macro_rules! poly {
    ([ $([$($x:expr),* $(,)*]),+ $(,)* ] < [ $($y:expr),* $(,)* ]) => { ... };
    ([ $([$($x:expr),* $(,)*]),+ $(,)* ] + [ $($y:expr),* $(,)* ] < 0) => { ... };
    ([ $([$($x:expr),* $(,)*]),+ $(,)* ] > [ $($y:expr),* $(,)* ]) => { ... };
    ([ $([$($x:expr),* $(,)*]),+ $(,)* ] + [ $($y:expr),* $(,)* ] > 0) => { ... };
}
Expand description

Creates a new Polytope from the given matrix and bias.

§Examples

use affinitree::poly;

let poly = poly!([[1, 0], [0, 1]] < [2, 3]);