Function sequant::size(const Expr&)

Function Documentation

inline std::size_t sequant::size(const Expr &expr)
Parameters:

expr[in] an expression

Returns:

number of subexpressions in expr, i.e., 0 for atoms (Constant, Variable, Tensor, etc.), >0 for nontrivial Product or Sum