CAPD DynSys Library
5.2.0
|
For a Multiindex mi, mi[p] is a number of differentiation with respect to i-th variable. For example, a Multipointer mp=(0,0,2,3) in 5-dimensional space corresponds to the Multiindex mi=(2,0,1,1,0). Hence, Multiindex agrees with standard notation and it contains an additional information about the dimension of the domain of the function. More...
#include <capd/vectalg/Multiindex.h>
Public Types | |
typedef Vector< int, 0 >::iterator | iterator |
typedef Vector< int, 0 >::const_iterator | const_iterator |
typedef std::vector< Multiindex > | MultiindexVector |
typedef std::vector< MultiindexVector > | IndicesSet |
typedef Vector< int, 0 >::size_type | size_type |
typedef int | ScalarType |
typedef Container< int, dim > | ContainerType |
typedef Vector< int, dim > | VectorType |
typedef __difference_type | difference_type |
Public Member Functions | |
Multiindex (void) | |
Multiindex (size_type _dimension) | |
Multiindex (size_type _dimension, const Multipointer &) | |
Multiindex (size_type dim, int data[]) | |
Multiindex (size_type dim, bool) | |
Multiindex (const Multiindex &v) | |
Multiindex & | operator= (const Multiindex &v) |
Multiindex (Multiindex &&v) | |
Multiindex & | operator= (Multiindex &&v) |
Multiindex (std::initializer_list< int > l) | |
bool | hasNext () |
bool | hasNext (int *a, int *b) const |
bool | hasNext (int *a, int *b, size_type j) const |
size_type | module () const |
returns sum of multiindex coordinates (i.e. degree of monomial) More... | |
long | factorial () const |
for multiindex (a,b,..,n) returns a!b!...n! More... | |
size_type | index (size_type maxDegree) const |
computes index in the array that corresponds to this multiindex More... | |
Vector & | operator+= (const Vector &v) |
Vector & | operator+= (const int &s) |
Vector & | operator-= (const Vector &v) |
Vector & | operator-= (const int &s) |
Vector & | operator*= (const int &s) |
Vector & | operator/= (const int &s) |
size_type | dimension () const |
ScalarType | euclNorm (void) const |
bool | normalize (void) |
void | sorting_permutation (typename rebind< int >::other &perm) |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
void | resize (size_type newCapacity) |
void | clear () |
Static Public Member Functions | |
static void | generateList (size_type n, size_type k, IndicesSet &result) |
static size_type | degree () |
static Vector * | makeArray (size_type N, size_type _dim) |
Static Public Attributes | |
const static size_type | csDim |
Static Protected Member Functions | |
static size_type | size () |
For a Multiindex mi, mi[p] is a number of differentiation with respect to i-th variable. For example, a Multipointer mp=(0,0,2,3) in 5-dimensional space corresponds to the Multiindex mi=(2,0,1,1,0). Hence, Multiindex agrees with standard notation and it contains an additional information about the dimension of the domain of the function.
For polynomial: Multiindex stores exponents of a given monomial. e.g. monomial of 4 variables (x,y,z,t) has multiindex (2,0,3,0)
|
inherited |
|
inherited |
typedef std::vector<MultiindexVector> capd::vectalg::Multiindex::IndicesSet |
typedef Vector<int,0>::iterator capd::vectalg::Multiindex::iterator |
typedef std::vector<Multiindex> capd::vectalg::Multiindex::MultiindexVector |
|
inherited |
typedef Vector<int,0>::size_type capd::vectalg::Multiindex::size_type |
|
inherited |
|
inline |
|
inlineexplicit |
capd::vectalg::Multiindex::Multiindex | ( | size_type | _dimension, |
const Multipointer & | mp | ||
) |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inherited |
|
inherited |
|
inlinestaticinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
long capd::vectalg::Multiindex::factorial | ( | ) | const |
for multiindex (a,b,..,n) returns a!b!...n!
|
static |
bool capd::vectalg::Multiindex::hasNext | ( | ) |
Multiindex::size_type capd::vectalg::Multiindex::index | ( | size_type | maxDegree | ) | const |
computes index in the array that corresponds to this multiindex
|
staticinherited |
Multiindex::size_type capd::vectalg::Multiindex::module | ( | ) | const |
returns sum of multiindex coordinates (i.e. degree of monomial)
returns sum of the multiindex entries
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inlinestaticprotectedinherited |
|
inherited |
|
staticinherited |