Skip to main content

HalfspaceIntersectionAlgorithms

Trait HalfspaceIntersectionAlgorithms 

Source
pub trait HalfspaceIntersectionAlgorithms<R: Runtime<DType = DType>> {
    // 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HalfspaceIntersectionAlgorithms<CpuRuntime> for CpuClient

Implementors§