termsΒΆ

Terms and collections of terms.

Terms (Term) are algebraic objects composed of a component and a coefficient. They encapsulate a TermData object which wraps the component and coefficient either as single owning instances or views of elements in another collection.

Terms are stored in collections of terms (Terms), which are array-like containers that similarly encapsulate a TermData object which wraps the components and coefficients either as owning instances or views of slices of another collection.

Sets of terms (TermSet) are set-like containers of terms, storing unique components and their coefficients, and allowing set-like operations on them. They are implemented using a hash map.

Sums of terms (TermSum) extend the TermSet interface with linear combination operations.

Classes

NumericTermSum(terms)

A sum of terms consisting of components and numeric coefficients.

NumericTerms(data[, indexer])

A collection of terms consisting of components and numeric coefficients.

Term(data[, indexer])

A term consisting of a component and a coefficient.

TermRegistry(term_type_sign, ...)

Registry of term types for each different coefficient type.

TermSet(terms)

A collection of unique terms consisting of components and coefficients.

TermSum(terms)

A sum of terms consisting of components and coefficients.

Terms(data[, indexer])

A collection of terms consisting of components and coefficients.