Skip to main content

Polyhedron

Struct Polyhedron 

Source
pub struct Polyhedron<N: CddNumber = DefaultNumber> { /* private fields */ }

Implementations§

Source§

impl<N: CddNumber> Polyhedron<N>

Source

pub fn from_matrix<R: RepresentationMarker>(m: &Matrix<N, R>) -> CddResult<Self>

Source

pub fn from_vertices<const D: usize>(vertices: &[[N; D]]) -> CddResult<Self>

Source

pub fn from_vertex_rows(vertices: &[Vec<N>]) -> CddResult<Self>

Source

pub fn facets(&self) -> CddResult<Matrix<N, Inequality>>

Source

pub fn generators(&self) -> CddResult<Matrix<N, Generator>>

Source

pub fn adjacency(&self) -> CddResult<SetFamily<N>>

👎Deprecated: Uses cddlib’s dd_CopyAdjacency, which has a serious performance-limiting bug that causes an approximately superexponential slowdown for “large” numbers of generators. Prefer hullabaloo’s adjacency construction APIs instead.
Source

pub fn input_adjacency(&self) -> CddResult<SetFamily<N>>

Source

pub fn incidence(&self) -> CddResult<SetFamily<N>>

Source

pub fn input_incidence(&self) -> CddResult<SetFamily<N>>

Source

pub fn append_input_rows<R: RepresentationMarker>( &mut self, rows: &Matrix<N, R>, ) -> CddResult<()>

Source

pub fn width_in_direction_real(&self, direction: &[f64]) -> CddResult<f64>

Trait Implementations§

Source§

impl<N: Debug + CddNumber> Debug for Polyhedron<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<N> Freeze for Polyhedron<N>

§

impl<N> RefUnwindSafe for Polyhedron<N>
where N: RefUnwindSafe,

§

impl<N = f64> !Send for Polyhedron<N>

§

impl<N = f64> !Sync for Polyhedron<N>

§

impl<N> Unpin for Polyhedron<N>
where N: Unpin,

§

impl<N> UnsafeUnpin for Polyhedron<N>

§

impl<N> UnwindSafe for Polyhedron<N>
where N: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.