Struct Contraction

Struct Documentation

struct Contraction

Represents a single contraction where the contraction of lhs with rhs, multiplied by the given factor contributes to the given result. If rhs is not given, this implies that the contribution is only lhs scaled with the provided factor.

Public Members

rational factor
Tensor result
Tensor lhs
std::optional<Tensor> rhs