Function sequant::transform_expr

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:
  • exprExprPtr to transform

  • index_replacements – index replacement map

  • scaling_factor – to scale the result

Returns:

a substituted and scaled expression pointer