Function sequant::mbpt::csv_transform¶
Defined in File csv.cpp
Function Documentation¶
-
ExprPtr sequant::mbpt::csv_transform(ExprPtr const &expr, const IndexSpace &csv_basis, std::wstring const &coeff_tensor_label, container::svector<std::wstring> const &tensor_labels)¶
expands CSVs in an expression in terms of a basis (standard unoccupieds, PAOs, AOs, etc.)
- Parameters:
expr – The expression to be CSV-transformed.
csv_basis – the basis in terms of which the CSVs are expanded
coeff_tensor_label – The label of the CSV-tranformation tensors that will be introduced.
tensor_labels – The labels of the tensors that will be transformed
- Returns:
The CSV-transformed expression if CSV-tensors with labels present in
csv_tensors
appear inexpr
. Otherwise returns the input expression itself.