Function sequant::transform_expr¶
Defined in File spin.cpp
Function Documentation¶
-
ExprPtr sequant::transform_expr(const ExprPtr &expr, const container::map<Index, Index> &index_replacements, Constant::scalar_type scaling_factor = 1)¶
Applies index replacement rules to an ExprPtr.
- Parameters:
expr – ExprPtr to transform
index_replacements – index replacement map
scaling_factor – to scale the result
- Returns:
a substituted and scaled expression pointer