Macaulay2 Engine
Loading...
Searching...
No Matches
ExponentVector< E, OC > Class Template Reference

#include <ExponentVector.hpp>

Public Types

typedef E Exponent
typedef ExponentExponents
typedef const ExponentConstExponents
typedef std::make_unsigned< Exponent >::type HashExponent

Static Public Member Functions

static void copy (int nvars, ConstExponents a, Exponents result)
static void one (int nvars, Exponents result)
static bool is_one (int nvars, ConstExponents a)
static bool equal (int nvars, ConstExponents a, ConstExponents b)
static void mult (int nvars, ConstExponents a, ConstExponents b, Exponents result)
static void power (int nvars, ConstExponents a, const Exponent n, Exponents result)
static void multpower (int nvars, ConstExponents a, ConstExponents b, const Exponent n, Exponents result)
static bool divides (int nvars, ConstExponents a, ConstExponents b)
static void divide (int nvars, ConstExponents a, ConstExponents b, Exponents result)
static void quotient (int nvars, ConstExponents a, ConstExponents b, Exponents result)
static void gcd (int nvars, ConstExponents a, ConstExponents b, Exponents result)
static void lcm (int nvars, ConstExponents a, ConstExponents b, Exponents result)
static int lex_compare (int nvars, ConstExponents a, ConstExponents b)
static Exponent simple_degree (int nvars, ConstExponents a)
static Exponent weight (int nvars, ConstExponents a, const std::vector< Exponent > &wts)
static Exponent weight (int nvars, ConstExponents a, M2_arrayint wts)
static HashExponent mask (int nvars, ConstExponents a)
static void syz (int nvars, ConstExponents a, ConstExponents b, Exponents c, Exponents d)
static void elem_text_out (buffer &o, int nvars, ConstExponents a, const std::vector< std::string > &varnames, bool p_one)

Detailed Description

template<class E, bool OC>
class ExponentVector< E, OC >

Implements safe operations on monomials represented as an array of exponents.

This class implements monomial operations on n-tuples, i.e. exponent vectors. No allocation is done by any of these routines.

The format for exponents_t is an array [e_0,...,e_nvars-1] of Exponent types representing the monomial Prod T_i^e_i. The 'nvars' information is not stored with the object.

Definition at line 65 of file ExponentVector.hpp.


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