File: tab_basics.hh

package info (click to toggle)
cadabra2 2.4.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,732 kB
  • sloc: ansic: 133,450; cpp: 92,064; python: 1,530; javascript: 203; sh: 184; xml: 182; objc: 53; makefile: 51
file content (26 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include "Algorithm.hh"
#include "YoungTab.hh"

namespace cadabra {

	class tab_basics : public Algorithm {
		public:
			tab_basics(const Kernel&, Ex&);

			typedef yngtab::filled_tableau<unsigned int> uinttab_t;
			typedef yngtab::tableaux<uinttab_t>          uinttabs_t;

			/// Convert an Ex to a numerical Young tableau, using num_to_it below.
			void tree_to_numerical_tab(iterator, uinttab_t& );
			unsigned int find_obj(const Ex& other);

			/// The inverse, converting tableaux to Ex objects attached as children of the iterator.
			void tabs_to_tree(uinttabs_t&, iterator, iterator, bool even_only);
			void tabs_to_singlet_rules(uinttabs_t&, iterator);

			std::vector<Ex::iterator> num_to_it;
		};

	}