Cadabra
Computer algebra system for field theory problems
Toggle main menu visibility
Loading...
Searching...
No Matches
core
algorithms
indexsort.hh
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Algorithm.hh
"
4
#include "
properties/TableauBase.hh
"
5
6
namespace
cadabra
{
7
8
class
indexsort
:
public
Algorithm
{
9
public
:
10
indexsort
(
const
Kernel
&,
Ex
&);
11
12
virtual
bool
can_apply
(
iterator
);
13
virtual
result_t
apply
(
iterator
&);
14
15
class
less_indexed_treenode
{
16
public
:
17
less_indexed_treenode
(
const
Kernel
&,
Ex
&,
iterator
it
);
18
bool
operator()
(
unsigned
int
,
unsigned
int
)
const
;
19
private
:
20
const
Kernel
&
kernel
;
21
// Ex& tr;
22
Ex::iterator
it
;
23
};
24
private
:
25
const
TableauBase
*
tb
;
26
};
27
28
}
Algorithm.hh
TableauBase.hh
cadabra::Algorithm::Algorithm
Algorithm(const Kernel &, Ex &)
Initialise the algorithm with a reference to the expression tree, but do not yet do anything with thi...
Definition
Algorithm.cc:52
cadabra::Algorithm::result_t
Ex::result_t result_t
Definition
Algorithm.hh:65
cadabra::Ex
Definition
Storage.hh:170
cadabra::ExManip::iterator
Ex::iterator iterator
Definition
ExManip.hh:12
cadabra::Kernel
Definition
Kernel.hh:15
cadabra::TableauBase
Definition
TableauBase.hh:9
cadabra::indexsort::less_indexed_treenode::kernel
const Kernel & kernel
Definition
indexsort.hh:20
cadabra::indexsort::less_indexed_treenode::less_indexed_treenode
less_indexed_treenode(const Kernel &, Ex &, iterator it)
Definition
indexsort.cc:21
cadabra::indexsort::less_indexed_treenode::it
Ex::iterator it
Definition
indexsort.hh:22
cadabra::indexsort::less_indexed_treenode::operator()
bool operator()(unsigned int, unsigned int) const
Definition
indexsort.cc:26
cadabra::indexsort::indexsort
indexsort(const Kernel &, Ex &)
Definition
indexsort.cc:8
cadabra::indexsort::apply
virtual result_t apply(iterator &)
Definition
indexsort.cc:33
cadabra::indexsort::tb
const TableauBase * tb
Definition
indexsort.hh:25
cadabra::indexsort::can_apply
virtual bool can_apply(iterator)
Definition
indexsort.cc:13
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition
Adjform.cc:83
Generated by
1.17.0