pub trait SpinUnitaryTransformable: Clone {
// Required method
fn transform_spin_mut(
&mut self,
dmat: &Array2<Complex<f64>>,
) -> Result<&mut Self, TransformationError>;
// Provided method
fn transform_spin(
&self,
dmat: &Array2<Complex<f64>>,
) -> Result<Self, TransformationError> { ... }
}
Expand description
Trait for spin unitary transformations. A spin unitary transformation has no spatial effects.
Required Methods§
sourcefn transform_spin_mut(
&mut self,
dmat: &Array2<Complex<f64>>,
) -> Result<&mut Self, TransformationError>
fn transform_spin_mut( &mut self, dmat: &Array2<Complex<f64>>, ) -> Result<&mut Self, TransformationError>
Performs a spin transformation in-place.
§Arguments
dmat
- The two-dimensional representation matrix of the transformation in the basis of the $\{ \alpha, \beta \}
$ spinors (i.e. decreasing $m
$ order).
Provided Methods§
sourcefn transform_spin(
&self,
dmat: &Array2<Complex<f64>>,
) -> Result<Self, TransformationError>
fn transform_spin( &self, dmat: &Array2<Complex<f64>>, ) -> Result<Self, TransformationError>
Object Safety§
This trait is not object safe.