pub fn calculate_structural_pattern_vjp(
cell: UnitCell,
space_group: &SpaceGroup,
input: &StructuralPatternInputView<'_>,
sample_weights: &[f64],
) -> Result<StructuralPatternVjpResult, StructuralPatternError>Expand description
Calculate a full structural-pattern transpose product from sample weights.
ยงErrors
Returns StructuralPatternError for invalid inputs or sample weights.