pub struct PleMatrix<F> { /* private fields */ }Implementations§
Source§impl<F> PleMatrix<F>
impl<F> PleMatrix<F>
Sourcepub fn new(mixed: DeviceBuffer<F>, height: usize, width: usize) -> Self
pub fn new(mixed: DeviceBuffer<F>, height: usize, width: usize) -> Self
Constructs a new PleMatrix.
Source§impl<F> PleMatrix<F>
impl<F> PleMatrix<F>
Sourcepub fn mixed(&self) -> &DeviceBuffer<F>
pub fn mixed(&self) -> &DeviceBuffer<F>
Stores the coefficient form of the univariate polynomial f(Z, \vect x) for each \vect x in H_n. Buffer size is the same as evals.
Source§impl PleMatrix<F>
impl PleMatrix<F>
Sourcepub fn from_evals(
l_skip: usize,
evals: DeviceBuffer<F>,
height: usize,
width: usize,
device_ctx: &GpuDeviceCtx,
) -> Self
pub fn from_evals( l_skip: usize, evals: DeviceBuffer<F>, height: usize, width: usize, device_ctx: &GpuDeviceCtx, ) -> Self
Creates a PleMatrix. This doubles the VRAM footprint to cache the mixed buffer.
pub fn to_evals( &self, l_skip: usize, device_ctx: &GpuDeviceCtx, ) -> Result<DeviceMatrix<F>, KernelError>
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for PleMatrix<F>
impl<F> RefUnwindSafe for PleMatrix<F>where
F: RefUnwindSafe,
impl<F> Send for PleMatrix<F>
impl<F> Sync for PleMatrix<F>
impl<F> Unpin for PleMatrix<F>
impl<F> UnsafeUnpin for PleMatrix<F>
impl<F> UnwindSafe for PleMatrix<F>where
F: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more