pub struct QuantumNeuralHybridProcessor { /* private fields */ }
Expand description
Quantum-Neural hybrid sparse matrix processor
Implementations§
Source§impl QuantumNeuralHybridProcessor
impl QuantumNeuralHybridProcessor
Sourcepub fn new(config: QuantumNeuralConfig) -> Self
pub fn new(config: QuantumNeuralConfig) -> Self
Create a new quantum-neural hybrid processor
Sourcepub fn hybrid_spmv<T>(
&mut self,
rows: usize,
cols: usize,
indptr: &[usize],
indices: &[usize],
data: &[T],
x: &[T],
y: &mut [T],
) -> SparseResult<()>
pub fn hybrid_spmv<T>( &mut self, rows: usize, cols: usize, indptr: &[usize], indices: &[usize], data: &[T], x: &[T], y: &mut [T], ) -> SparseResult<()>
Hybrid sparse matrix-vector multiplication
Sourcepub fn get_stats(&self) -> QuantumNeuralHybridStats
pub fn get_stats(&self) -> QuantumNeuralHybridStats
Get hybrid processor statistics
Auto Trait Implementations§
impl !Freeze for QuantumNeuralHybridProcessor
impl RefUnwindSafe for QuantumNeuralHybridProcessor
impl Send for QuantumNeuralHybridProcessor
impl Sync for QuantumNeuralHybridProcessor
impl Unpin for QuantumNeuralHybridProcessor
impl UnwindSafe for QuantumNeuralHybridProcessor
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
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