pub struct SQLTensor { /* private fields */ }Implementations§
Source§impl SQLTensor
impl SQLTensor
pub fn dimensions(&self) -> u32
pub fn row_count(&self) -> usize
pub fn values(&self) -> &[f32]
Sourcepub fn from_slice_with_control(
values: &[f32],
dimensions: u32,
control: &ProductionControl<'_>,
) -> Result<Produced<Self>, SQLError>
pub fn from_slice_with_control( values: &[f32], dimensions: u32, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>
Validate shape and finite float32 elements before retaining a copied row-major input. An empty tensor still has a positive declared dimension.
Sourcepub fn from_value_with_control(
value: &Value,
dimensions: u32,
control: &ProductionControl<'_>,
) -> Result<Produced<Self>, SQLError>
pub fn from_value_with_control( value: &Value, dimensions: u32, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>
Observe a selected SQL tensor using the existing native numeric conversion, checking every row against its declared dimension under the caller’s allowance.
pub fn copy_with_control( &self, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SQLTensor
impl RefUnwindSafe for SQLTensor
impl Send for SQLTensor
impl Sync for SQLTensor
impl Unpin for SQLTensor
impl UnsafeUnpin for SQLTensor
impl UnwindSafe for SQLTensor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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