pub struct HostPhasorField { /* private fields */ }Expand description
A complete two-dimensional host phasor field.
Real and imaginary components are stored in separate flat f64 buffers.
Both buffers use the same row-major index, row * columns + column.
Implementations§
Source§impl HostPhasorField
impl HostPhasorField
Sourcepub fn from_component_planes(
rows: usize,
columns: usize,
real: Vec<f64>,
imaginary: Vec<f64>,
) -> Result<Self, HostPhasorFieldError>
pub fn from_component_planes( rows: usize, columns: usize, real: Vec<f64>, imaginary: Vec<f64>, ) -> Result<Self, HostPhasorFieldError>
Admits complete finite row-major component planes.
This is the explicit materialization boundary used by runtime tensor adapters. It performs no propagation and takes ownership of both buffers without copying them.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns whether the component planes contain no cells.
Successfully solved fields are never empty because sampling-plane construction requires non-zero dimensions.
Trait Implementations§
Source§impl Clone for HostPhasorField
impl Clone for HostPhasorField
Source§fn clone(&self) -> HostPhasorField
fn clone(&self) -> HostPhasorField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostPhasorField
impl Debug for HostPhasorField
Source§impl PartialEq for HostPhasorField
impl PartialEq for HostPhasorField
impl StructuralPartialEq for HostPhasorField
Auto Trait Implementations§
impl Freeze for HostPhasorField
impl RefUnwindSafe for HostPhasorField
impl Send for HostPhasorField
impl Sync for HostPhasorField
impl Unpin for HostPhasorField
impl UnsafeUnpin for HostPhasorField
impl UnwindSafe for HostPhasorField
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