Skip to main content

HalfspaceIntersectionAlgorithms

Trait HalfspaceIntersectionAlgorithms 

Source
pub trait HalfspaceIntersectionAlgorithms<R: Runtime> {
    // Required method
    fn halfspace_intersection(
        &self,
        halfspaces: &Tensor<R>,
        interior_point: &Tensor<R>,
    ) -> Result<HalfspaceIntersection<R>>;
}
Expand description

Algorithmic contract for halfspace intersection.

Required Methods§

Source

fn halfspace_intersection( &self, halfspaces: &Tensor<R>, interior_point: &Tensor<R>, ) -> Result<HalfspaceIntersection<R>>

Compute the intersection of halfspaces.

§Arguments
  • halfspaces - [m, d+1] where each row is [n_1,...,n_d, b] for n·x + b ≤ 0
  • interior_point - [d] a point strictly inside all halfspaces
§Returns

HalfspaceIntersection with the vertices of the intersection polytope.

Implementations on Foreign Types§

Source§

impl HalfspaceIntersectionAlgorithms<CpuRuntime> for CpuClient

Implementors§