Struct IndexCountRule

Inheritance Relationships

Base Type

Struct Documentation

struct IndexCountRule : public sequant::ExpressionFilter::Rule

Rule matching expressions that contain (at any depth) a tensor with exactly the given total number of (non-null) indices, i.e. modes

Public Functions

explicit IndexCountRule(std::size_t count)
virtual bool matches(const Expr &expr) const override

Public Members

std::size_t count_