Function sequant::size(const ExprPtr&)

Function Documentation

inline std::size_t sequant::size(const ExprPtr &exprptr)
Parameters:

exprptr[in] (a pointer to) an expression

Returns:

number of subexpressions in exprptr , i.e., 0 if exprptr is null or an atom (Constant, Variable, Tensor, etc.), >0 for nontrivial Product or Sum