Symmetric Polynomials  V3.1
A C++ library for generating symmetric polynomials with relations
ElementarySymmetricVariables< T, _deg > Struct Template Reference

Variables \(e_1,...,e_n\) of degrees \(|e_i|=i\). More...

#include <Symmetric_Basis.hpp>

Inheritance diagram for ElementarySymmetricVariables< T, _deg >:
[legend]
Collaboration diagram for ElementarySymmetricVariables< T, _deg >:
[legend]

Public Types

typedef _deg deg_t
 Degree typedef. More...
 
- Public Types inherited from StandardVariables< int64_t, int64_t >
typedef int64_t deg_t
 Degree typedef. More...
 

Public Member Functions

deg_t degree () const
 Computes degree of monomial on the \(e_i\). More...
 
- Public Member Functions inherited from StandardVariables< int64_t, int64_t >
deg_t degree () const
 Computes degree of monomial on standard variables \(x_i\). More...
 
StandardVariables operator+ (const StandardVariables &b) const
 Multiplies monomials by adding their exponents. More...
 
size_t operator() () const
 Hashes monomial. More...
 

Static Public Member Functions

static std::string name (int i, int n)
 Returns the name of the variables \(e_i\). More...
 
- Static Public Member Functions inherited from StandardVariables< int64_t, int64_t >
static std::string name (int i, int n)
 Returns the names of the standard variables \(x_i\). More...
 

Detailed Description

template<class T = int64_t, class _deg = int64_t>
struct symmp::ElementarySymmetricVariables< T, _deg >

Variables \(e_1,...,e_n\) of degrees \(|e_i|=i\).

A monomial \(x_1^{a_1}\cdots x_n^{a_n}\) is stored as the vector \([a_1,...,a_n]\)

Template Parameters
TThe (integral) value type of the exponent vector.
_degThe (integral) value type used in the degree function.

Member Typedef Documentation

◆ deg_t

typedef _deg deg_t

Degree typedef.

Member Function Documentation

◆ degree()

deg_t degree ( ) const

Computes degree of monomial on the \(e_i\).

Returns
Degree \(\sum_iia_i\) when *this= \(e_1^{a_1}\cdots e_n^{a_n}\)

◆ name()

static std::string name ( int  i,
int  n 
)
static

Returns the name of the variables \(e_i\).

Returns
"e_i"
Parameters
iThe variable index
nThe number variables

The documentation for this struct was generated from the following file: