einsums::compute_graph::NodeFeatures#

Note

Generated from the C++ headers by apiary --emit-cpp-docs-json.

Defined in header Einsums/ComputeGraph/NodeFeatures.hpp.

class NodeFeatures#

A set of NodeFeature values.

constexpr NodeFeatures() = default#

The empty set.

constexpr NodeFeatures(NodeFeature feature)#

The set holding feature alone.

Parameters:

feature – The feature.

static constexpr NodeFeatures all()#

Every feature there is, which is what a pass that never interprets a node declares.

Returns:

The full set.

constexpr NodeFeatures operator|(NodeFeatures other) const#

The union of two sets.

Parameters:

other – The other set.

Returns:

Every feature in either.

constexpr NodeFeatures without(NodeFeatures other) const#

This set less other.

Parameters:

other – The features to drop.

Returns:

Every feature here that is not in other.

constexpr NodeFeatures missing_from(NodeFeatures other) const#

The features of other this set does not hold.

Parameters:

other – The set to compare against.

Returns:

other less this set.

constexpr bool covers(NodeFeatures other) const#

Whether this set holds every feature of other.

Parameters:

other – The set to test.

Returns:

True when nothing in other is missing here.

constexpr bool empty() const#

Whether the set is empty.

Returns:

True for the empty set.

constexpr bool operator==(const NodeFeatures&) const = default#

Whether two sets hold the same features.

Returns:

True when they do.