Struct ExprMatcherOptions

Struct Documentation

struct ExprMatcherOptions

A wrapper around an expression that allows customization on how exactly two expressions are supposed to be compared. It is directly comparable to expression objects and can therefore be used for expression lookup in containers (assuming the container allows for transparent comparators).

Public Functions

bool operator==(const ExprMatcherOptions&) const = default

Public Members

SEQUANT_DESIGNATED_INIT_ONLY
TensorComparison tensor_cmp = TensorComparison::Identity

The way tensor-valued expressions shall be compared.

bool cross_comparisons = true

Whether to compare expressions across different expression types.