pub struct StokesVector<R: RealField>(/* private fields */);Expand description
Stokes Vector. Intensity vector $(S_0, S_1, S_2, S_3)$. Rank 1, Dim 4 Tensor. Constraint: $S_0^2 \ge S_1^2 + S_2^2 + S_3^2$.
Implementations§
Source§impl<R: RealField> StokesVector<R>
impl<R: RealField> StokesVector<R>
pub fn new(tensor: CausalTensor<R>) -> Result<Self, PhysicsError>
pub fn inner(&self) -> &CausalTensor<R>
Trait Implementations§
Source§impl<R: Clone + RealField> Clone for StokesVector<R>
impl<R: Clone + RealField> Clone for StokesVector<R>
Source§fn clone(&self) -> StokesVector<R>
fn clone(&self) -> StokesVector<R>
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<R: Default + RealField> Default for StokesVector<R>
impl<R: Default + RealField> Default for StokesVector<R>
Source§fn default() -> StokesVector<R>
fn default() -> StokesVector<R>
Returns the “default value” for a type. Read more
Source§impl<R: PartialEq + RealField> PartialEq for StokesVector<R>
impl<R: PartialEq + RealField> PartialEq for StokesVector<R>
Source§fn eq(&self, other: &StokesVector<R>) -> bool
fn eq(&self, other: &StokesVector<R>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<R: RealField> StructuralPartialEq for StokesVector<R>
Auto Trait Implementations§
impl<R> Freeze for StokesVector<R>
impl<R> RefUnwindSafe for StokesVector<R>where
R: RefUnwindSafe,
impl<R> Send for StokesVector<R>where
R: Send,
impl<R> Sync for StokesVector<R>where
R: Sync,
impl<R> Unpin for StokesVector<R>where
R: Unpin,
impl<R> UnsafeUnpin for StokesVector<R>
impl<R> UnwindSafe for StokesVector<R>where
R: UnwindSafe,
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