Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
SeQuant Documentation
Logo

User

  • Getting started
    • Wick’s Theorem
    • Register Index Spaces
    • Operators
  • Installation
  • User Guide
    • Operator Interface for Symbolic Many-Body Algebra
    • Coupled-Cluster Class
    • Evaluation Trace Analysis Using Nushell

Developer

  • Developer docs
    • Documentation Guide
  • API reference

See Also

  • TiledArray
  • Massively Parallel Quantum Chemistry
  • Valeev Research Group
Back to top
View this page

Function sequant::size(const Expr&)¶

  • Defined in File expr_algorithms.cpp

Function Documentation¶

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

Copyright © 2025, SeQuant developers
Made with Sphinx and @pradyunsg's Furo
Last updated on Dec 12, 2025 2:44:02 AM
On this page
  • Function sequant::size(const Expr&)
    • Function Documentation
      • size()