Trait SpinUnitaryTransformable

Source
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§

Source

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§

Source

fn transform_spin( &self, dmat: &Array2<Complex<f64>>, ) -> Result<Self, TransformationError>

Performs a spin transformation and returns the transformed result.

§Arguments
  • dmat - The two-dimensional representation matrix of the transformation in the basis of the $\{ \alpha, \beta \}$ spinors (i.e. decreasing $m$ order).
§Returns

The transformed result.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§