Function sequant::intern

Function Documentation

const IndexBasis &sequant::intern(const IndexBasis &basis)
Returns:

a reference to the unique, program-lifetime copy of basis, which agrees with basis in every attribute (unlike IndexBasis::operator==, which ignores the extent, metric and field); the copy is created on first use and never destroyed, so the reference never dangles. Two calls return the same address iff their arguments agree in all attributes. Thread-safe.