pub trait SpatialUnitaryTransformable: Clone {
// Required method
fn transform_spatial_mut(
&mut self,
rmat: &Array2<f64>,
perm: Option<&Permutation<usize>>,
) -> Result<&mut Self, TransformationError>;
// Provided method
fn transform_spatial(
&self,
rmat: &Array2<f64>,
perm: Option<&Permutation<usize>>,
) -> Result<Self, TransformationError> { ... }
}
Expand description
Trait for spatial unitary transformation. A spatial unitary transformation also permutes off-origin sites.
Required Methods§
sourcefn transform_spatial_mut(
&mut self,
rmat: &Array2<f64>,
perm: Option<&Permutation<usize>>,
) -> Result<&mut Self, TransformationError>
fn transform_spatial_mut( &mut self, rmat: &Array2<f64>, perm: Option<&Permutation<usize>>, ) -> Result<&mut Self, TransformationError>
Performs a spatial transformation in-place.
§Arguments
rmat
- The three-dimensional representation matrix of the transformation in the basis of coordinate functions $(y, z, x)
$.perm
- An optional permutation describing how any off-origin sites are permuted amongst each other under the transformation.
Provided Methods§
sourcefn transform_spatial(
&self,
rmat: &Array2<f64>,
perm: Option<&Permutation<usize>>,
) -> Result<Self, TransformationError>
fn transform_spatial( &self, rmat: &Array2<f64>, perm: Option<&Permutation<usize>>, ) -> Result<Self, TransformationError>
Object Safety§
This trait is not object safe.